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 Summary
Constructors Constructor Description MicrosoftGraphMailFolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>additionalProperties()Get the additionalProperties property: mailFolder.IntegerchildFolderCount()Get the childFolderCount property: The number of immediate child mailFolders in the current mailFolder.List<MicrosoftGraphMailFolder>childFolders()Get the childFolders property: The collection of child folders in the mailFolder.StringdisplayName()Get the displayName property: The mailFolder's display name.List<MicrosoftGraphMessageRule>messageRules()Get the messageRules property: The collection of rules that apply to the user's Inbox folder.List<MicrosoftGraphMessage>messages()Get the messages property: The collection of messages in the mailFolder.List<MicrosoftGraphMultiValueLegacyExtendedProperty>multiValueExtendedProperties()Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the mailFolder.StringparentFolderId()Get the parentFolderId property: The unique identifier for the mailFolder's parent mailFolder.List<MicrosoftGraphSingleValueLegacyExtendedProperty>singleValueExtendedProperties()Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the mailFolder.IntegertotalItemCount()Get the totalItemCount property: The number of items in the mailFolder.IntegerunreadItemCount()Get the unreadItemCount property: The number of items in the mailFolder marked as unread.voidvalidate()Validates the instance.MicrosoftGraphMailFolderwithAdditionalProperties(Map<String,Object> additionalProperties)Set the additionalProperties property: mailFolder.MicrosoftGraphMailFolderwithChildFolderCount(Integer childFolderCount)Set the childFolderCount property: The number of immediate child mailFolders in the current mailFolder.MicrosoftGraphMailFolderwithChildFolders(List<MicrosoftGraphMailFolder> childFolders)Set the childFolders property: The collection of child folders in the mailFolder.MicrosoftGraphMailFolderwithDisplayName(String displayName)Set the displayName property: The mailFolder's display name.MicrosoftGraphMailFolderwithId(String id)Set the id property: Read-only.MicrosoftGraphMailFolderwithMessageRules(List<MicrosoftGraphMessageRule> messageRules)Set the messageRules property: The collection of rules that apply to the user's Inbox folder.MicrosoftGraphMailFolderwithMessages(List<MicrosoftGraphMessage> messages)Set the messages property: The collection of messages in the mailFolder.MicrosoftGraphMailFolderwithMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties)Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the mailFolder.MicrosoftGraphMailFolderwithParentFolderId(String parentFolderId)Set the parentFolderId property: The unique identifier for the mailFolder's parent mailFolder.MicrosoftGraphMailFolderwithSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties)Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the mailFolder.MicrosoftGraphMailFolderwithTotalItemCount(Integer totalItemCount)Set the totalItemCount property: The number of items in the mailFolder.MicrosoftGraphMailFolderwithUnreadItemCount(Integer unreadItemCount)Set the unreadItemCount property: The number of items in the mailFolder marked as unread.-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
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:
additionalPropertiesin classMicrosoftGraphEntity- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphMailFolder withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: mailFolder.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphEntity- 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:
withIdin classMicrosoftGraphEntity- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classMicrosoftGraphEntity- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-