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
  • Constructor Details

    • MailFolder

      public MailFolder()
      Instantiates a new MailFolder 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

      @Nullable public Integer getChildFolderCount()
      Gets the childFolderCount property value. The number of immediate child mailFolders in the current mailFolder.
      Returns:
      a Integer
    • getChildFolders

      @Nullable public List<MailFolder> getChildFolders()
      Gets the childFolders property value. The collection of child folders in the mailFolder.
      Returns:
      a List<MailFolder>
    • getDisplayName

      @Nullable public String 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 interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getIsHidden

      @Nullable public Boolean 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

      @Nullable public List<MessageRule> getMessageRules()
      Gets the messageRules property value. The collection of rules that apply to the user's Inbox folder.
      Returns:
      a List<MessageRule>
    • getMessages

      @Nullable public List<Message> getMessages()
      Gets the messages property value. The collection of messages in the mailFolder.
      Returns:
      a List<Message>
    • getMultiValueExtendedProperties

      @Nullable public List<MultiValueLegacyExtendedProperty> 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

      @Nullable public String getParentFolderId()
      Gets the parentFolderId property value. The unique identifier for the mailFolder's parent mailFolder.
      Returns:
      a String
    • getSingleValueExtendedProperties

      @Nullable public List<SingleValueLegacyExtendedProperty> 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

      @Nullable public Integer getTotalItemCount()
      Gets the totalItemCount property value. The number of items in the mailFolder.
      Returns:
      a Integer
    • getUnreadItemCount

      @Nullable public 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
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setChildFolderCount

      public void setChildFolderCount(@Nullable Integer value)
      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

      public void setChildFolders(@Nullable List<MailFolder> value)
      Sets the childFolders property value. The collection of child folders in the mailFolder.
      Parameters:
      value - Value to set for the childFolders property.
    • setDisplayName

      public void setDisplayName(@Nullable String value)
      Sets the displayName property value. The mailFolder's display name.
      Parameters:
      value - Value to set for the displayName property.
    • setIsHidden

      public void setIsHidden(@Nullable Boolean value)
      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

      public void setMessageRules(@Nullable List<MessageRule> value)
      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

      public void setMessages(@Nullable List<Message> value)
      Sets the messages property value. The collection of messages in the mailFolder.
      Parameters:
      value - Value to set for the messages property.
    • setMultiValueExtendedProperties

      public void setMultiValueExtendedProperties(@Nullable List<MultiValueLegacyExtendedProperty> value)
      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

      public void setParentFolderId(@Nullable String value)
      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

      public void setTotalItemCount(@Nullable Integer value)
      Sets the totalItemCount property value. The number of items in the mailFolder.
      Parameters:
      value - Value to set for the totalItemCount property.
    • setUnreadItemCount

      public void setUnreadItemCount(@Nullable Integer value)
      Sets the unreadItemCount property value. The number of items in the mailFolder marked as unread.
      Parameters:
      value - Value to set for the unreadItemCount property.