你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

MicrosoftGraphMailFolder Class

public final class MicrosoftGraphMailFolder
extends MicrosoftGraphEntity

mailFolder.

Constructor Summary

Constructor Description
MicrosoftGraphMailFolder()

Creates an instance of MicrosoftGraphMailFolder class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: mailFolder.

Integer childFolderCount()

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.

String displayName()

Get the displayName property: The mailFolder's display name.

static MicrosoftGraphMailFolder fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphMailFolder from the JsonReader.

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.

String parentFolderId()

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.

JsonWriter toJson(JsonWriter jsonWriter)
Integer totalItemCount()

Get the totalItemCount property: The number of items in the mailFolder.

Integer unreadItemCount()

Get the unreadItemCount property: The number of items in the mailFolder marked as unread.

void validate()

Validates the instance.

MicrosoftGraphMailFolder withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: mailFolder.

MicrosoftGraphMailFolder withChildFolderCount(Integer childFolderCount)

Set the childFolderCount property: The number of immediate child mailFolders in the current mailFolder.

MicrosoftGraphMailFolder withChildFolders(List<MicrosoftGraphMailFolder> childFolders)

Set the childFolders property: The collection of child folders in the mailFolder.

MicrosoftGraphMailFolder withDisplayName(String displayName)

Set the displayName property: The mailFolder's display name.

MicrosoftGraphMailFolder withId(String id)

Set the id property: Read-only.

MicrosoftGraphMailFolder withMessageRules(List<MicrosoftGraphMessageRule> messageRules)

Set the messageRules property: The collection of rules that apply to the user's Inbox folder.

MicrosoftGraphMailFolder withMessages(List<MicrosoftGraphMessage> messages)

Set the messages property: The collection of messages in the mailFolder.

MicrosoftGraphMailFolder withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties)

Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the mailFolder.

MicrosoftGraphMailFolder withParentFolderId(String parentFolderId)

Set the parentFolderId property: The unique identifier for the mailFolder's parent mailFolder.

MicrosoftGraphMailFolder withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties)

Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the mailFolder.

MicrosoftGraphMailFolder withTotalItemCount(Integer totalItemCount)

Set the totalItemCount property: The number of items in the mailFolder.

MicrosoftGraphMailFolder withUnreadItemCount(Integer unreadItemCount)

Set the unreadItemCount property: The number of items in the mailFolder marked as unread.

Methods inherited from MicrosoftGraphEntity

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphMailFolder

public MicrosoftGraphMailFolder()

Creates an instance of MicrosoftGraphMailFolder class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: mailFolder.

Overrides:

MicrosoftGraphMailFolder.additionalProperties()

Returns:

the additionalProperties value.

childFolderCount

public Integer childFolderCount()

Get the childFolderCount property: The number of immediate child mailFolders in the current mailFolder.

Returns:

the childFolderCount value.

childFolders

public List childFolders()

Get the childFolders property: The collection of child folders in the mailFolder.

Returns:

the childFolders value.

displayName

public String displayName()

Get the displayName property: The mailFolder's display name.

Returns:

the displayName value.

fromJson

public static MicrosoftGraphMailFolder fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphMailFolder from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphMailFolder if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the MicrosoftGraphMailFolder.

messageRules

public List messageRules()

Get the messageRules property: The collection of rules that apply to the user's Inbox folder.

Returns:

the messageRules value.

messages

public List messages()

Get the messages property: The collection of messages in the mailFolder.

Returns:

the messages value.

multiValueExtendedProperties

public List multiValueExtendedProperties()

Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable.

Returns:

the multiValueExtendedProperties value.

parentFolderId

public String parentFolderId()

Get the parentFolderId property: The unique identifier for the mailFolder's parent mailFolder.

Returns:

the parentFolderId value.

singleValueExtendedProperties

public List singleValueExtendedProperties()

Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable.

Returns:

the singleValueExtendedProperties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphMailFolder.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

totalItemCount

public Integer totalItemCount()

Get the totalItemCount property: The number of items in the mailFolder.

Returns:

the totalItemCount value.

unreadItemCount

public Integer unreadItemCount()

Get the unreadItemCount property: The number of items in the mailFolder marked as unread.

Returns:

the unreadItemCount value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphMailFolder.validate()

withAdditionalProperties

public MicrosoftGraphMailFolder withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: mailFolder.

Overrides:

MicrosoftGraphMailFolder.withAdditionalProperties(Map<String,Object> additionalProperties)

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphMailFolder object itself.

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.

withChildFolders

public MicrosoftGraphMailFolder withChildFolders(List 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.

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.

withId

public MicrosoftGraphMailFolder withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphMailFolder.withId(String id)

Parameters:

id

withMessageRules

public MicrosoftGraphMailFolder withMessageRules(List 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.

withMessages

public MicrosoftGraphMailFolder withMessages(List messages)

Set the messages property: The collection of messages in the mailFolder.

Parameters:

messages - the messages value to set.

Returns:

the MicrosoftGraphMailFolder object itself.

withMultiValueExtendedProperties

public MicrosoftGraphMailFolder withMultiValueExtendedProperties(List 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.

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.

withSingleValueExtendedProperties

public MicrosoftGraphMailFolder withSingleValueExtendedProperties(List 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.

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.

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.

Applies to