Package com.microsoft.graph.models
Class MailSearchFolder
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.MailFolder
com.microsoft.graph.models.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
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MailSearchFoldercreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueThe deserialization information for the current modelGets the filterQuery property value.Gets the includeNestedFolders property value.Gets the isSupported property value.Gets the sourceFolderIds property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetFilterQuery(String value) Sets the filterQuery property value.voidsetIncludeNestedFolders(Boolean value) Sets the includeNestedFolders property value.voidsetIsSupported(Boolean value) Sets the isSupported property value.voidsetSourceFolderIds(List<String> value) Sets the sourceFolderIds property value.Methods inherited from class com.microsoft.graph.models.MailFolder
getChildFolderCount, getChildFolders, getDisplayName, getIsHidden, getMessageRules, getMessages, getMultiValueExtendedProperties, getParentFolderId, getSingleValueExtendedProperties, getTotalItemCount, getUnreadItemCount, setChildFolderCount, setChildFolders, setDisplayName, setIsHidden, setMessageRules, setMessages, setMultiValueExtendedProperties, setParentFolderId, setSingleValueExtendedProperties, setTotalItemCount, setUnreadItemCountMethods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
MailSearchFolder
public MailSearchFolder()Instantiates a newMailSearchFolderand 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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classMailFolder- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFilterQuery
Gets the filterQuery property value. The OData query to filter the messages.- Returns:
- a
String
-
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
Gets the isSupported property value. Indicates whether a search folder is editable using REST APIs.- Returns:
- a
Boolean
-
getSourceFolderIds
Gets the sourceFolderIds property value. The mailbox folders that should be mined. -
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object- Specified by:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
serializein classMailFolder- Parameters:
writer- Serialization writer to use to serialize this model
-
setFilterQuery
Sets the filterQuery property value. The OData query to filter the messages.- Parameters:
value- Value to set for the filterQuery property.
-
setIncludeNestedFolders
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
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
Sets the sourceFolderIds property value. The mailbox folders that should be mined.- Parameters:
value- Value to set for the sourceFolderIds property.
-