Class MicrosoftGraphMailFolder

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphMailFolder

public final class MicrosoftGraphMailFolder extends MicrosoftGraphEntity
mailFolder.
  • Constructor Details

    • MicrosoftGraphMailFolder

      public MicrosoftGraphMailFolder()
      Creates an instance of MicrosoftGraphMailFolder class.
  • Method Details

    • childFolderCount

      public Integer childFolderCount()
      Get the childFolderCount property: The number of immediate child mailFolders in the current mailFolder.
      Returns:
      the childFolderCount value.
    • withChildFolderCount

      public MicrosoftGraphMailFolder withChildFolderCount(Integer childFolderCount)
      Set the childFolderCount property: The number of immediate child mailFolders in the current mailFolder.
      Parameters:
      childFolderCount - the childFolderCount value to set.
      Returns:
      the MicrosoftGraphMailFolder object itself.
    • displayName

      public String displayName()
      Get the displayName property: The mailFolder's display name.
      Returns:
      the displayName value.
    • withDisplayName

      public MicrosoftGraphMailFolder withDisplayName(String displayName)
      Set the displayName property: The mailFolder's display name.
      Parameters:
      displayName - the displayName value to set.
      Returns:
      the MicrosoftGraphMailFolder object itself.
    • parentFolderId

      public String parentFolderId()
      Get the parentFolderId property: The unique identifier for the mailFolder's parent mailFolder.
      Returns:
      the parentFolderId value.
    • withParentFolderId

      public MicrosoftGraphMailFolder withParentFolderId(String parentFolderId)
      Set the parentFolderId property: The unique identifier for the mailFolder's parent mailFolder.
      Parameters:
      parentFolderId - the parentFolderId value to set.
      Returns:
      the MicrosoftGraphMailFolder object itself.
    • totalItemCount

      public Integer totalItemCount()
      Get the totalItemCount property: The number of items in the mailFolder.
      Returns:
      the totalItemCount value.
    • withTotalItemCount

      public MicrosoftGraphMailFolder withTotalItemCount(Integer totalItemCount)
      Set the totalItemCount property: The number of items in the mailFolder.
      Parameters:
      totalItemCount - the totalItemCount value to set.
      Returns:
      the MicrosoftGraphMailFolder object itself.
    • unreadItemCount

      public Integer unreadItemCount()
      Get the unreadItemCount property: The number of items in the mailFolder marked as unread.
      Returns:
      the unreadItemCount value.
    • withUnreadItemCount

      public MicrosoftGraphMailFolder withUnreadItemCount(Integer unreadItemCount)
      Set the unreadItemCount property: The number of items in the mailFolder marked as unread.
      Parameters:
      unreadItemCount - the unreadItemCount value to set.
      Returns:
      the MicrosoftGraphMailFolder object itself.
    • childFolders

      public List<MicrosoftGraphMailFolder> childFolders()
      Get the childFolders property: The collection of child folders in the mailFolder.
      Returns:
      the childFolders value.
    • withChildFolders

      public MicrosoftGraphMailFolder withChildFolders(List<MicrosoftGraphMailFolder> childFolders)
      Set the childFolders property: The collection of child folders in the mailFolder.
      Parameters:
      childFolders - the childFolders value to set.
      Returns:
      the MicrosoftGraphMailFolder object itself.
    • messageRules

      public List<MicrosoftGraphMessageRule> messageRules()
      Get the messageRules property: The collection of rules that apply to the user's Inbox folder.
      Returns:
      the messageRules value.
    • withMessageRules

      public MicrosoftGraphMailFolder withMessageRules(List<MicrosoftGraphMessageRule> messageRules)
      Set the messageRules property: The collection of rules that apply to the user's Inbox folder.
      Parameters:
      messageRules - the messageRules value to set.
      Returns:
      the MicrosoftGraphMailFolder object itself.
    • messages

      public List<MicrosoftGraphMessage> messages()
      Get the messages property: The collection of messages in the mailFolder.
      Returns:
      the messages value.
    • withMessages

      public MicrosoftGraphMailFolder withMessages(List<MicrosoftGraphMessage> messages)
      Set the messages property: The collection of messages in the mailFolder.
      Parameters:
      messages - the messages value to set.
      Returns:
      the MicrosoftGraphMailFolder object itself.
    • multiValueExtendedProperties

      public List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties()
      Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable.
      Returns:
      the multiValueExtendedProperties value.
    • withMultiValueExtendedProperties

      public MicrosoftGraphMailFolder withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties)
      Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable.
      Parameters:
      multiValueExtendedProperties - the multiValueExtendedProperties value to set.
      Returns:
      the MicrosoftGraphMailFolder object itself.
    • singleValueExtendedProperties

      public List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties()
      Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable.
      Returns:
      the singleValueExtendedProperties value.
    • withSingleValueExtendedProperties

      public MicrosoftGraphMailFolder withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties)
      Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable.
      Parameters:
      singleValueExtendedProperties - the singleValueExtendedProperties value to set.
      Returns:
      the MicrosoftGraphMailFolder object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: mailFolder.
      Overrides:
      additionalProperties in class MicrosoftGraphEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphMailFolder withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: mailFolder.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphEntity
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphMailFolder object itself.
    • withId

      public MicrosoftGraphMailFolder withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphEntity
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphEntity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.