Class MailSearchFolder

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class MailSearchFolder extends MailFolder implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • MailSearchFolder

      public MailSearchFolder()
      Instantiates a new MailSearchFolder and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static MailSearchFolder createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a MailSearchFolder
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class MailFolder
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFilterQuery

      @Nullable public String getFilterQuery()
      Gets the filterQuery property value. The OData query to filter the messages.
      Returns:
      a String
    • getIncludeNestedFolders

      @Nullable public Boolean getIncludeNestedFolders()
      Gets the includeNestedFolders property value. Indicates how the mailbox folder hierarchy should be traversed in the search. true means that a deep search should be done to include child folders in the hierarchy of each folder explicitly specified in sourceFolderIds. false means a shallow search of only each of the folders explicitly specified in sourceFolderIds.
      Returns:
      a Boolean
    • getIsSupported

      @Nullable public Boolean getIsSupported()
      Gets the isSupported property value. Indicates whether a search folder is editable using REST APIs.
      Returns:
      a Boolean
    • getSourceFolderIds

      @Nullable public List<String> getSourceFolderIds()
      Gets the sourceFolderIds property value. The mailbox folders that should be mined.
      Returns:
      a List<String>
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class MailFolder
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setFilterQuery

      public void setFilterQuery(@Nullable String value)
      Sets the filterQuery property value. The OData query to filter the messages.
      Parameters:
      value - Value to set for the filterQuery property.
    • setIncludeNestedFolders

      public void setIncludeNestedFolders(@Nullable Boolean value)
      Sets the includeNestedFolders property value. Indicates how the mailbox folder hierarchy should be traversed in the search. true means that a deep search should be done to include child folders in the hierarchy of each folder explicitly specified in sourceFolderIds. false means a shallow search of only each of the folders explicitly specified in sourceFolderIds.
      Parameters:
      value - Value to set for the includeNestedFolders property.
    • setIsSupported

      public void setIsSupported(@Nullable Boolean value)
      Sets the isSupported property value. Indicates whether a search folder is editable using REST APIs.
      Parameters:
      value - Value to set for the isSupported property.
    • setSourceFolderIds

      public void setSourceFolderIds(@Nullable List<String> value)
      Sets the sourceFolderIds property value. The mailbox folders that should be mined.
      Parameters:
      value - Value to set for the sourceFolderIds property.