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

MicrosoftGraphMessage Class

public final class MicrosoftGraphMessage
extends MicrosoftGraphOutlookItem

message.

Constructor Summary

Constructor Description
MicrosoftGraphMessage()

Creates an instance of MicrosoftGraphMessage class.

Method Summary

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

Get the additionalProperties property: message.

List<MicrosoftGraphAttachment> attachments()

Get the attachments property: The fileAttachment and itemAttachment attachments for the message.

List<MicrosoftGraphRecipient> bccRecipients()

Get the bccRecipients property: The Bcc: recipients for the message.

MicrosoftGraphItemBody body()

Get the body property: itemBody.

String bodyPreview()

Get the bodyPreview property: The first 255 characters of the message body.

List<MicrosoftGraphRecipient> ccRecipients()

Get the ccRecipients property: The Cc: recipients for the message.

String conversationId()

Get the conversationId property: The ID of the conversation the email belongs to.

byte[] conversationIndex()

Get the conversationIndex property: Indicates the position of the message within the conversation.

List<MicrosoftGraphExtension> extensions()

Get the extensions property: The collection of open extensions defined for the message.

MicrosoftGraphFollowupFlag flag()

Get the flag property: followupFlag.

MicrosoftGraphRecipient from()

Get the from property: recipient.

static MicrosoftGraphMessage fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphMessage from the JsonReader.

Boolean hasAttachments()

Get the hasAttachments property: Indicates whether the message has attachments.

MicrosoftGraphImportance importance()

Get the importance property: importance.

MicrosoftGraphInferenceClassificationType inferenceClassification()

Get the inferenceClassification property: inferenceClassificationType.

List<MicrosoftGraphInternetMessageHeader> internetMessageHeaders()

Get the internetMessageHeaders property: A collection of message headers defined by RFC5322.

String internetMessageId()

Get the internetMessageId property: The message ID in the format specified by RFC2822.

Boolean isDeliveryReceiptRequested()

Get the isDeliveryReceiptRequested property: Indicates whether a read receipt is requested for the message.

Boolean isDraft()

Get the isDraft property: Indicates whether the message is a draft.

Boolean isRead()

Get the isRead property: Indicates whether the message has been read.

Boolean isReadReceiptRequested()

Get the isReadReceiptRequested property: Indicates whether a read receipt is requested for the message.

List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties()

Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the message.

String parentFolderId()

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

OffsetDateTime receivedDateTime()

Get the receivedDateTime property: The date and time the message was received.

List<MicrosoftGraphRecipient> replyTo()

Get the replyTo property: The email addresses to use when replying.

MicrosoftGraphRecipient sender()

Get the sender property: recipient.

OffsetDateTime sentDateTime()

Get the sentDateTime property: The date and time the message was sent.

List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties()

Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the message.

String subject()

Get the subject property: The subject of the message.

JsonWriter toJson(JsonWriter jsonWriter)
List<MicrosoftGraphRecipient> toRecipients()

Get the toRecipients property: The To: recipients for the message.

MicrosoftGraphItemBody uniqueBody()

Get the uniqueBody property: itemBody.

void validate()

Validates the instance.

String webLink()

Get the webLink property: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed.

MicrosoftGraphMessage withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: message.

MicrosoftGraphMessage withAttachments(List<MicrosoftGraphAttachment> attachments)

Set the attachments property: The fileAttachment and itemAttachment attachments for the message.

MicrosoftGraphMessage withBccRecipients(List<MicrosoftGraphRecipient> bccRecipients)

Set the bccRecipients property: The Bcc: recipients for the message.

MicrosoftGraphMessage withBody(MicrosoftGraphItemBody body)

Set the body property: itemBody.

MicrosoftGraphMessage withBodyPreview(String bodyPreview)

Set the bodyPreview property: The first 255 characters of the message body.

MicrosoftGraphMessage withCategories(List<String> categories)

Set the categories property: The categories associated with the item.

MicrosoftGraphMessage withCcRecipients(List<MicrosoftGraphRecipient> ccRecipients)

Set the ccRecipients property: The Cc: recipients for the message.

MicrosoftGraphMessage withChangeKey(String changeKey)

Set the changeKey property: Identifies the version of the item.

MicrosoftGraphMessage withConversationId(String conversationId)

Set the conversationId property: The ID of the conversation the email belongs to.

MicrosoftGraphMessage withConversationIndex(byte[] conversationIndex)

Set the conversationIndex property: Indicates the position of the message within the conversation.

MicrosoftGraphMessage withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.

MicrosoftGraphMessage withExtensions(List<MicrosoftGraphExtension> extensions)

Set the extensions property: The collection of open extensions defined for the message.

MicrosoftGraphMessage withFlag(MicrosoftGraphFollowupFlag flag)

Set the flag property: followupFlag.

MicrosoftGraphMessage withFrom(MicrosoftGraphRecipient from)

Set the from property: recipient.

MicrosoftGraphMessage withHasAttachments(Boolean hasAttachments)

Set the hasAttachments property: Indicates whether the message has attachments.

MicrosoftGraphMessage withId(String id)

Set the id property: Read-only.

MicrosoftGraphMessage withImportance(MicrosoftGraphImportance importance)

Set the importance property: importance.

MicrosoftGraphMessage withInferenceClassification(MicrosoftGraphInferenceClassificationType inferenceClassification)

Set the inferenceClassification property: inferenceClassificationType.

MicrosoftGraphMessage withInternetMessageHeaders(List<MicrosoftGraphInternetMessageHeader> internetMessageHeaders)

Set the internetMessageHeaders property: A collection of message headers defined by RFC5322.

MicrosoftGraphMessage withInternetMessageId(String internetMessageId)

Set the internetMessageId property: The message ID in the format specified by RFC2822.

MicrosoftGraphMessage withIsDeliveryReceiptRequested(Boolean isDeliveryReceiptRequested)

Set the isDeliveryReceiptRequested property: Indicates whether a read receipt is requested for the message.

MicrosoftGraphMessage withIsDraft(Boolean isDraft)

Set the isDraft property: Indicates whether the message is a draft.

MicrosoftGraphMessage withIsRead(Boolean isRead)

Set the isRead property: Indicates whether the message has been read.

MicrosoftGraphMessage withIsReadReceiptRequested(Boolean isReadReceiptRequested)

Set the isReadReceiptRequested property: Indicates whether a read receipt is requested for the message.

MicrosoftGraphMessage withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time.

MicrosoftGraphMessage withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties)

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

MicrosoftGraphMessage withParentFolderId(String parentFolderId)

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

MicrosoftGraphMessage withReceivedDateTime(OffsetDateTime receivedDateTime)

Set the receivedDateTime property: The date and time the message was received.

MicrosoftGraphMessage withReplyTo(List<MicrosoftGraphRecipient> replyTo)

Set the replyTo property: The email addresses to use when replying.

MicrosoftGraphMessage withSender(MicrosoftGraphRecipient sender)

Set the sender property: recipient.

MicrosoftGraphMessage withSentDateTime(OffsetDateTime sentDateTime)

Set the sentDateTime property: The date and time the message was sent.

MicrosoftGraphMessage withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties)

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

MicrosoftGraphMessage withSubject(String subject)

Set the subject property: The subject of the message.

MicrosoftGraphMessage withToRecipients(List<MicrosoftGraphRecipient> toRecipients)

Set the toRecipients property: The To: recipients for the message.

MicrosoftGraphMessage withUniqueBody(MicrosoftGraphItemBody uniqueBody)

Set the uniqueBody property: itemBody.

MicrosoftGraphMessage withWebLink(String webLink)

Set the webLink property: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed.

Methods inherited from MicrosoftGraphEntity

id

Methods inherited from MicrosoftGraphOutlookItem

Methods inherited from java.lang.Object

Constructor Details

MicrosoftGraphMessage

public MicrosoftGraphMessage()

Creates an instance of MicrosoftGraphMessage class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: message.

Overrides:

MicrosoftGraphMessage.additionalProperties()

Returns:

the additionalProperties value.

attachments

public List attachments()

Get the attachments property: The fileAttachment and itemAttachment attachments for the message.

Returns:

the attachments value.

bccRecipients

public List bccRecipients()

Get the bccRecipients property: The Bcc: recipients for the message.

Returns:

the bccRecipients value.

body

public MicrosoftGraphItemBody body()

Get the body property: itemBody.

Returns:

the body value.

bodyPreview

public String bodyPreview()

Get the bodyPreview property: The first 255 characters of the message body. It is in text format.

Returns:

the bodyPreview value.

ccRecipients

public List ccRecipients()

Get the ccRecipients property: The Cc: recipients for the message.

Returns:

the ccRecipients value.

conversationId

public String conversationId()

Get the conversationId property: The ID of the conversation the email belongs to.

Returns:

the conversationId value.

conversationIndex

public byte[] conversationIndex()

Get the conversationIndex property: Indicates the position of the message within the conversation.

Returns:

the conversationIndex value.

extensions

public List extensions()

Get the extensions property: The collection of open extensions defined for the message. Nullable.

Returns:

the extensions value.

flag

public MicrosoftGraphFollowupFlag flag()

Get the flag property: followupFlag.

Returns:

the flag value.

from

public MicrosoftGraphRecipient from()

Get the from property: recipient.

Returns:

the from value.

fromJson

public static MicrosoftGraphMessage fromJson(JsonReader jsonReader)

Reads an instance of MicrosoftGraphMessage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of MicrosoftGraphMessage 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 MicrosoftGraphMessage.

hasAttachments

public Boolean hasAttachments()

Get the hasAttachments property: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as .

Returns:

the hasAttachments value.

importance

public MicrosoftGraphImportance importance()

Get the importance property: importance.

Returns:

the importance value.

inferenceClassification

public MicrosoftGraphInferenceClassificationType inferenceClassification()

Get the inferenceClassification property: inferenceClassificationType.

Returns:

the inferenceClassification value.

internetMessageHeaders

public List internetMessageHeaders()

Get the internetMessageHeaders property: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only.

Returns:

the internetMessageHeaders value.

internetMessageId

public String internetMessageId()

Get the internetMessageId property: The message ID in the format specified by RFC2822.

Returns:

the internetMessageId value.

isDeliveryReceiptRequested

public Boolean isDeliveryReceiptRequested()

Get the isDeliveryReceiptRequested property: Indicates whether a read receipt is requested for the message.

Returns:

the isDeliveryReceiptRequested value.

isDraft

public Boolean isDraft()

Get the isDraft property: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet.

Returns:

the isDraft value.

isRead

public Boolean isRead()

Get the isRead property: Indicates whether the message has been read.

Returns:

the isRead value.

isReadReceiptRequested

public Boolean isReadReceiptRequested()

Get the isReadReceiptRequested property: Indicates whether a read receipt is requested for the message.

Returns:

the isReadReceiptRequested value.

multiValueExtendedProperties

public List multiValueExtendedProperties()

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

Returns:

the multiValueExtendedProperties value.

parentFolderId

public String parentFolderId()

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

Returns:

the parentFolderId value.

receivedDateTime

public OffsetDateTime receivedDateTime()

Get the receivedDateTime property: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Returns:

the receivedDateTime value.

replyTo

public List replyTo()

Get the replyTo property: The email addresses to use when replying.

Returns:

the replyTo value.

sender

public MicrosoftGraphRecipient sender()

Get the sender property: recipient.

Returns:

the sender value.

sentDateTime

public OffsetDateTime sentDateTime()

Get the sentDateTime property: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Returns:

the sentDateTime value.

singleValueExtendedProperties

public List singleValueExtendedProperties()

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

Returns:

the singleValueExtendedProperties value.

subject

public String subject()

Get the subject property: The subject of the message.

Returns:

the subject value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

MicrosoftGraphMessage.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

toRecipients

public List toRecipients()

Get the toRecipients property: The To: recipients for the message.

Returns:

the toRecipients value.

uniqueBody

public MicrosoftGraphItemBody uniqueBody()

Get the uniqueBody property: itemBody.

Returns:

the uniqueBody value.

validate

public void validate()

Validates the instance.

Overrides:

MicrosoftGraphMessage.validate()

webLink

public String webLink()

Get the webLink property: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame.

Returns:

the webLink value.

withAdditionalProperties

public MicrosoftGraphMessage withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: message.

Overrides:

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

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the MicrosoftGraphMessage object itself.

withAttachments

public MicrosoftGraphMessage withAttachments(List attachments)

Set the attachments property: The fileAttachment and itemAttachment attachments for the message.

Parameters:

attachments - the attachments value to set.

Returns:

the MicrosoftGraphMessage object itself.

withBccRecipients

public MicrosoftGraphMessage withBccRecipients(List bccRecipients)

Set the bccRecipients property: The Bcc: recipients for the message.

Parameters:

bccRecipients - the bccRecipients value to set.

Returns:

the MicrosoftGraphMessage object itself.

withBody

public MicrosoftGraphMessage withBody(MicrosoftGraphItemBody body)

Set the body property: itemBody.

Parameters:

body - the body value to set.

Returns:

the MicrosoftGraphMessage object itself.

withBodyPreview

public MicrosoftGraphMessage withBodyPreview(String bodyPreview)

Set the bodyPreview property: The first 255 characters of the message body. It is in text format.

Parameters:

bodyPreview - the bodyPreview value to set.

Returns:

the MicrosoftGraphMessage object itself.

withCategories

public MicrosoftGraphMessage withCategories(List categories)

Set the categories property: The categories associated with the item.

Overrides:

MicrosoftGraphMessage.withCategories(List<String> categories)

Parameters:

categories

withCcRecipients

public MicrosoftGraphMessage withCcRecipients(List ccRecipients)

Set the ccRecipients property: The Cc: recipients for the message.

Parameters:

ccRecipients - the ccRecipients value to set.

Returns:

the MicrosoftGraphMessage object itself.

withChangeKey

public MicrosoftGraphMessage withChangeKey(String changeKey)

Set the changeKey property: Identifies the version of the item. Every time the item is changed, changeKey changes as well. This allows Exchange to apply changes to the correct version of the object. Read-only.

Overrides:

MicrosoftGraphMessage.withChangeKey(String changeKey)

Parameters:

changeKey

withConversationId

public MicrosoftGraphMessage withConversationId(String conversationId)

Set the conversationId property: The ID of the conversation the email belongs to.

Parameters:

conversationId - the conversationId value to set.

Returns:

the MicrosoftGraphMessage object itself.

withConversationIndex

public MicrosoftGraphMessage withConversationIndex(byte[] conversationIndex)

Set the conversationIndex property: Indicates the position of the message within the conversation.

Parameters:

conversationIndex - the conversationIndex value to set.

Returns:

the MicrosoftGraphMessage object itself.

withCreatedDateTime

public MicrosoftGraphMessage withCreatedDateTime(OffsetDateTime createdDateTime)

Set the createdDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Overrides:

MicrosoftGraphMessage.withCreatedDateTime(OffsetDateTime createdDateTime)

Parameters:

createdDateTime

withExtensions

public MicrosoftGraphMessage withExtensions(List extensions)

Set the extensions property: The collection of open extensions defined for the message. Nullable.

Parameters:

extensions - the extensions value to set.

Returns:

the MicrosoftGraphMessage object itself.

withFlag

public MicrosoftGraphMessage withFlag(MicrosoftGraphFollowupFlag flag)

Set the flag property: followupFlag.

Parameters:

flag - the flag value to set.

Returns:

the MicrosoftGraphMessage object itself.

withFrom

public MicrosoftGraphMessage withFrom(MicrosoftGraphRecipient from)

Set the from property: recipient.

Parameters:

from - the from value to set.

Returns:

the MicrosoftGraphMessage object itself.

withHasAttachments

public MicrosoftGraphMessage withHasAttachments(Boolean hasAttachments)

Set the hasAttachments property: Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as .

Parameters:

hasAttachments - the hasAttachments value to set.

Returns:

the MicrosoftGraphMessage object itself.

withId

public MicrosoftGraphMessage withId(String id)

Set the id property: Read-only.

Overrides:

MicrosoftGraphMessage.withId(String id)

Parameters:

id

withImportance

public MicrosoftGraphMessage withImportance(MicrosoftGraphImportance importance)

Set the importance property: importance.

Parameters:

importance - the importance value to set.

Returns:

the MicrosoftGraphMessage object itself.

withInferenceClassification

public MicrosoftGraphMessage withInferenceClassification(MicrosoftGraphInferenceClassificationType inferenceClassification)

Set the inferenceClassification property: inferenceClassificationType.

Parameters:

inferenceClassification - the inferenceClassification value to set.

Returns:

the MicrosoftGraphMessage object itself.

withInternetMessageHeaders

public MicrosoftGraphMessage withInternetMessageHeaders(List internetMessageHeaders)

Set the internetMessageHeaders property: A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only.

Parameters:

internetMessageHeaders - the internetMessageHeaders value to set.

Returns:

the MicrosoftGraphMessage object itself.

withInternetMessageId

public MicrosoftGraphMessage withInternetMessageId(String internetMessageId)

Set the internetMessageId property: The message ID in the format specified by RFC2822.

Parameters:

internetMessageId - the internetMessageId value to set.

Returns:

the MicrosoftGraphMessage object itself.

withIsDeliveryReceiptRequested

public MicrosoftGraphMessage withIsDeliveryReceiptRequested(Boolean isDeliveryReceiptRequested)

Set the isDeliveryReceiptRequested property: Indicates whether a read receipt is requested for the message.

Parameters:

isDeliveryReceiptRequested - the isDeliveryReceiptRequested value to set.

Returns:

the MicrosoftGraphMessage object itself.

withIsDraft

public MicrosoftGraphMessage withIsDraft(Boolean isDraft)

Set the isDraft property: Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet.

Parameters:

isDraft - the isDraft value to set.

Returns:

the MicrosoftGraphMessage object itself.

withIsRead

public MicrosoftGraphMessage withIsRead(Boolean isRead)

Set the isRead property: Indicates whether the message has been read.

Parameters:

isRead - the isRead value to set.

Returns:

the MicrosoftGraphMessage object itself.

withIsReadReceiptRequested

public MicrosoftGraphMessage withIsReadReceiptRequested(Boolean isReadReceiptRequested)

Set the isReadReceiptRequested property: Indicates whether a read receipt is requested for the message.

Parameters:

isReadReceiptRequested - the isReadReceiptRequested value to set.

Returns:

the MicrosoftGraphMessage object itself.

withLastModifiedDateTime

public MicrosoftGraphMessage withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Set the lastModifiedDateTime property: The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Overrides:

MicrosoftGraphMessage.withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)

Parameters:

lastModifiedDateTime

withMultiValueExtendedProperties

public MicrosoftGraphMessage withMultiValueExtendedProperties(List multiValueExtendedProperties)

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

Parameters:

multiValueExtendedProperties - the multiValueExtendedProperties value to set.

Returns:

the MicrosoftGraphMessage object itself.

withParentFolderId

public MicrosoftGraphMessage withParentFolderId(String parentFolderId)

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

Parameters:

parentFolderId - the parentFolderId value to set.

Returns:

the MicrosoftGraphMessage object itself.

withReceivedDateTime

public MicrosoftGraphMessage withReceivedDateTime(OffsetDateTime receivedDateTime)

Set the receivedDateTime property: The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Parameters:

receivedDateTime - the receivedDateTime value to set.

Returns:

the MicrosoftGraphMessage object itself.

withReplyTo

public MicrosoftGraphMessage withReplyTo(List replyTo)

Set the replyTo property: The email addresses to use when replying.

Parameters:

replyTo - the replyTo value to set.

Returns:

the MicrosoftGraphMessage object itself.

withSender

public MicrosoftGraphMessage withSender(MicrosoftGraphRecipient sender)

Set the sender property: recipient.

Parameters:

sender - the sender value to set.

Returns:

the MicrosoftGraphMessage object itself.

withSentDateTime

public MicrosoftGraphMessage withSentDateTime(OffsetDateTime sentDateTime)

Set the sentDateTime property: The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'.

Parameters:

sentDateTime - the sentDateTime value to set.

Returns:

the MicrosoftGraphMessage object itself.

withSingleValueExtendedProperties

public MicrosoftGraphMessage withSingleValueExtendedProperties(List singleValueExtendedProperties)

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

Parameters:

singleValueExtendedProperties - the singleValueExtendedProperties value to set.

Returns:

the MicrosoftGraphMessage object itself.

withSubject

public MicrosoftGraphMessage withSubject(String subject)

Set the subject property: The subject of the message.

Parameters:

subject - the subject value to set.

Returns:

the MicrosoftGraphMessage object itself.

withToRecipients

public MicrosoftGraphMessage withToRecipients(List toRecipients)

Set the toRecipients property: The To: recipients for the message.

Parameters:

toRecipients - the toRecipients value to set.

Returns:

the MicrosoftGraphMessage object itself.

withUniqueBody

public MicrosoftGraphMessage withUniqueBody(MicrosoftGraphItemBody uniqueBody)

Set the uniqueBody property: itemBody.

Parameters:

uniqueBody - the uniqueBody value to set.

Returns:

the MicrosoftGraphMessage object itself.

withWebLink

public MicrosoftGraphMessage withWebLink(String webLink)

Set the webLink property: The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, then the browser will show the message in the Outlook on the web review pane.The message will open in the browser if you are logged in to your mailbox via Outlook on the web. You will be prompted to login if you are not already logged in with the browser.This URL cannot be accessed from within an iFrame.

Parameters:

webLink - the webLink value to set.

Returns:

the MicrosoftGraphMessage object itself.

Applies to