Package com.microsoft.graph.models
Class MailFolder
java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.MailFolder
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder
,com.microsoft.kiota.serialization.Parsable
,com.microsoft.kiota.store.BackedModel
- Direct Known Subclasses:
MailSearchFolder
@Generated("com.microsoft.kiota")
public class MailFolder
extends Entity
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 MailFolder
createFromDiscriminatorValue
(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the childFolderCount property value.Gets the childFolders property value.Gets the displayName property value.The deserialization information for the current modelGets the isHidden property value.Gets the messageRules property value.Gets the messages property value.Gets the multiValueExtendedProperties property value.Gets the parentFolderId property value.Gets the singleValueExtendedProperties property value.Gets the totalItemCount property value.Gets the unreadItemCount property value.void
serialize
(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoid
setChildFolderCount
(Integer value) Sets the childFolderCount property value.void
setChildFolders
(List<MailFolder> value) Sets the childFolders property value.void
setDisplayName
(String value) Sets the displayName property value.void
setIsHidden
(Boolean value) Sets the isHidden property value.void
setMessageRules
(List<MessageRule> value) Sets the messageRules property value.void
setMessages
(List<Message> value) Sets the messages property value.void
Sets the multiValueExtendedProperties property value.void
setParentFolderId
(String value) Sets the parentFolderId property value.void
Sets the singleValueExtendedProperties property value.void
setTotalItemCount
(Integer value) Sets the totalItemCount property value.void
setUnreadItemCount
(Integer value) Sets the unreadItemCount property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
MailFolder
public MailFolder()Instantiates a newMailFolder
and sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static MailFolder 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
MailFolder
-
getChildFolderCount
Gets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder.- Returns:
- a
Integer
-
getChildFolders
Gets the childFolders property value. The collection of child folders in the mailFolder.- Returns:
- a
List<MailFolder>
-
getDisplayName
Gets the displayName property value. The mailFolder's display name.- Returns:
- a
String
-
getFieldDeserializers
@Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()The deserialization information for the current model- Specified by:
getFieldDeserializers
in interfacecom.microsoft.kiota.serialization.Parsable
- Overrides:
getFieldDeserializers
in classEntity
- Returns:
- a
Map<String,
Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getIsHidden
Gets the isHidden property value. Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders.- Returns:
- a
Boolean
-
getMessageRules
Gets the messageRules property value. The collection of rules that apply to the user's Inbox folder.- Returns:
- a
List<MessageRule>
-
getMessages
Gets the messages property value. The collection of messages in the mailFolder. -
getMultiValueExtendedProperties
Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable.- Returns:
- a
List<MultiValueLegacyExtendedProperty>
-
getParentFolderId
Gets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder.- Returns:
- a
String
-
getSingleValueExtendedProperties
Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable.- Returns:
- a
List<SingleValueLegacyExtendedProperty>
-
getTotalItemCount
Gets the totalItemCount property value. The number of items in the mailFolder.- Returns:
- a
Integer
-
getUnreadItemCount
Gets the unreadItemCount property value. The number of items in the mailFolder marked as unread.- Returns:
- a
Integer
-
serialize
public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current object -
setChildFolderCount
Sets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder.- Parameters:
value
- Value to set for the childFolderCount property.
-
setChildFolders
Sets the childFolders property value. The collection of child folders in the mailFolder.- Parameters:
value
- Value to set for the childFolders property.
-
setDisplayName
Sets the displayName property value. The mailFolder's display name.- Parameters:
value
- Value to set for the displayName property.
-
setIsHidden
Sets the isHidden property value. Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders.- Parameters:
value
- Value to set for the isHidden property.
-
setMessageRules
Sets the messageRules property value. The collection of rules that apply to the user's Inbox folder.- Parameters:
value
- Value to set for the messageRules property.
-
setMessages
Sets the messages property value. The collection of messages in the mailFolder.- Parameters:
value
- Value to set for the messages property.
-
setMultiValueExtendedProperties
Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable.- Parameters:
value
- Value to set for the multiValueExtendedProperties property.
-
setParentFolderId
Sets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder.- Parameters:
value
- Value to set for the parentFolderId property.
-
setSingleValueExtendedProperties
public void setSingleValueExtendedProperties(@Nullable List<SingleValueLegacyExtendedProperty> value) Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable.- Parameters:
value
- Value to set for the singleValueExtendedProperties property.
-
setTotalItemCount
Sets the totalItemCount property value. The number of items in the mailFolder.- Parameters:
value
- Value to set for the totalItemCount property.
-
setUnreadItemCount
Sets the unreadItemCount property value. The number of items in the mailFolder marked as unread.- Parameters:
value
- Value to set for the unreadItemCount property.
-