MicrosoftGraphMessage Class
- java.
lang. Object - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphEntity - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphOutlookItem - com.
azure. resourcemanager. authorization. fluent. models. MicrosoftGraphMessage
- com.
- com.
- com.
public final class MicrosoftGraphMessage
extends MicrosoftGraphOutlookItem
message.
Constructor Summary
Constructor | Description |
---|---|
MicrosoftGraphMessage() |
Creates an instance of Microsoft |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
List<Microsoft |
attachments()
Get the attachments property: The file |
List<Microsoft |
bccRecipients()
Get the bcc |
Microsoft |
body()
Get the body property: item |
String |
bodyPreview()
Get the body |
List<Microsoft |
ccRecipients()
Get the cc |
String |
conversationId()
Get the conversation |
byte[] |
conversationIndex()
Get the conversation |
List<Microsoft |
extensions()
Get the extensions property: The collection of open extensions defined for the message. |
Microsoft |
flag()
Get the flag property: followup |
Microsoft |
from()
Get the from property: recipient. |
static
Microsoft |
fromJson(JsonReader jsonReader)
Reads an instance of Microsoft |
Boolean |
hasAttachments()
Get the has |
Microsoft |
importance()
Get the importance property: importance. |
Microsoft |
inferenceClassification()
Get the inference |
List<Microsoft |
internetMessageHeaders()
Get the internet |
String |
internetMessageId()
Get the internet |
Boolean |
isDeliveryReceiptRequested()
Get the is |
Boolean |
isDraft()
Get the is |
Boolean |
isRead()
Get the is |
Boolean |
isReadReceiptRequested()
Get the is |
List<Microsoft |
multiValueExtendedProperties()
Get the multi |
String |
parentFolderId()
Get the parent |
Offset |
receivedDateTime()
Get the received |
List<Microsoft |
replyTo()
Get the reply |
Microsoft |
sender()
Get the sender property: recipient. |
Offset |
sentDateTime()
Get the sent |
List<Microsoft |
singleValueExtendedProperties()
Get the single |
String |
subject()
Get the subject property: The subject of the message. |
Json |
toJson(JsonWriter jsonWriter) |
List<Microsoft |
toRecipients()
Get the to |
Microsoft |
uniqueBody()
Get the unique |
void |
validate()
Validates the instance. |
String |
webLink()
Get the web |
Microsoft |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Microsoft |
withAttachments(List<MicrosoftGraphAttachment> attachments)
Set the attachments property: The file |
Microsoft |
withBccRecipients(List<MicrosoftGraphRecipient> bccRecipients)
Set the bcc |
Microsoft |
withBody(MicrosoftGraphItemBody body)
Set the body property: item |
Microsoft |
withBodyPreview(String bodyPreview)
Set the body |
Microsoft |
withCategories(List<String> categories)
Set the categories property: The categories associated with the item. |
Microsoft |
withCcRecipients(List<MicrosoftGraphRecipient> ccRecipients)
Set the cc |
Microsoft |
withChangeKey(String changeKey)
Set the change |
Microsoft |
withConversationId(String conversationId)
Set the conversation |
Microsoft |
withConversationIndex(byte[] conversationIndex)
Set the conversation |
Microsoft |
withCreatedDateTime(OffsetDateTime createdDateTime)
Set the created |
Microsoft |
withExtensions(List<MicrosoftGraphExtension> extensions)
Set the extensions property: The collection of open extensions defined for the message. |
Microsoft |
withFlag(MicrosoftGraphFollowupFlag flag)
Set the flag property: followup |
Microsoft |
withFrom(MicrosoftGraphRecipient from)
Set the from property: recipient. |
Microsoft |
withHasAttachments(Boolean hasAttachments)
Set the has |
Microsoft |
withId(String id)
Set the id property: Read-only. |
Microsoft |
withImportance(MicrosoftGraphImportance importance)
Set the importance property: importance. |
Microsoft |
withInferenceClassification(MicrosoftGraphInferenceClassificationType inferenceClassification)
Set the inference |
Microsoft |
withInternetMessageHeaders(List<MicrosoftGraphInternetMessageHeader> internetMessageHeaders)
Set the internet |
Microsoft |
withInternetMessageId(String internetMessageId)
Set the internet |
Microsoft |
withIsDeliveryReceiptRequested(Boolean isDeliveryReceiptRequested)
Set the is |
Microsoft |
withIsDraft(Boolean isDraft)
Set the is |
Microsoft |
withIsRead(Boolean isRead)
Set the is |
Microsoft |
withIsReadReceiptRequested(Boolean isReadReceiptRequested)
Set the is |
Microsoft |
withLastModifiedDateTime(OffsetDateTime lastModifiedDateTime)
Set the last |
Microsoft |
withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties)
Set the multi |
Microsoft |
withParentFolderId(String parentFolderId)
Set the parent |
Microsoft |
withReceivedDateTime(OffsetDateTime receivedDateTime)
Set the received |
Microsoft |
withReplyTo(List<MicrosoftGraphRecipient> replyTo)
Set the reply |
Microsoft |
withSender(MicrosoftGraphRecipient sender)
Set the sender property: recipient. |
Microsoft |
withSentDateTime(OffsetDateTime sentDateTime)
Set the sent |
Microsoft |
withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties)
Set the single |
Microsoft |
withSubject(String subject)
Set the subject property: The subject of the message. |
Microsoft |
withToRecipients(List<MicrosoftGraphRecipient> toRecipients)
Set the to |
Microsoft |
withUniqueBody(MicrosoftGraphItemBody uniqueBody)
Set the unique |
Microsoft |
withWebLink(String webLink)
Set the web |
Methods inherited from MicrosoftGraphEntity
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
Get the additionalProperties property: message.
Overrides:
MicrosoftGraphMessage.additionalProperties()Returns:
attachments
public List
Get the attachments property: The fileAttachment and itemAttachment attachments for the message.
Returns:
bccRecipients
public List
Get the bccRecipients property: The Bcc: recipients for the message.
Returns:
body
public MicrosoftGraphItemBody body()
Get the body property: itemBody.
Returns:
bodyPreview
public String bodyPreview()
Get the bodyPreview property: The first 255 characters of the message body. It is in text format.
Returns:
ccRecipients
public List
Get the ccRecipients property: The Cc: recipients for the message.
Returns:
conversationId
public String conversationId()
Get the conversationId property: The ID of the conversation the email belongs to.
Returns:
conversationIndex
public byte[] conversationIndex()
Get the conversationIndex property: Indicates the position of the message within the conversation.
Returns:
extensions
public List
Get the extensions property: The collection of open extensions defined for the message. Nullable.
Returns:
flag
public MicrosoftGraphFollowupFlag flag()
Get the flag property: followupFlag.
Returns:
from
public MicrosoftGraphRecipient from()
Get the from property: recipient.
Returns:
fromJson
public static MicrosoftGraphMessage fromJson(JsonReader jsonReader)
Reads an instance of MicrosoftGraphMessage from the JsonReader.
Parameters:
Returns:
Throws:
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:
importance
public MicrosoftGraphImportance importance()
Get the importance property: importance.
Returns:
inferenceClassification
public MicrosoftGraphInferenceClassificationType inferenceClassification()
Get the inferenceClassification property: inferenceClassificationType.
Returns:
internetMessageHeaders
public List
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:
internetMessageId
public String internetMessageId()
Get the internetMessageId property: The message ID in the format specified by RFC2822.
Returns:
isDeliveryReceiptRequested
public Boolean isDeliveryReceiptRequested()
Get the isDeliveryReceiptRequested property: Indicates whether a read receipt is requested for the message.
Returns:
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:
isRead
public Boolean isRead()
Get the isRead property: Indicates whether the message has been read.
Returns:
isReadReceiptRequested
public Boolean isReadReceiptRequested()
Get the isReadReceiptRequested property: Indicates whether a read receipt is requested for the message.
Returns:
multiValueExtendedProperties
public List
Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the message. Nullable.
Returns:
parentFolderId
public String parentFolderId()
Get the parentFolderId property: The unique identifier for the message's parent mailFolder.
Returns:
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:
replyTo
public List
Get the replyTo property: The email addresses to use when replying.
Returns:
sender
public MicrosoftGraphRecipient sender()
Get the sender property: recipient.
Returns:
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:
singleValueExtendedProperties
public List
Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the message. Nullable.
Returns:
subject
public String subject()
Get the subject property: The subject of the message.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
MicrosoftGraphMessage.toJson(JsonWriter jsonWriter)Parameters:
Throws:
toRecipients
public List
Get the toRecipients property: The To: recipients for the message.
Returns:
uniqueBody
public MicrosoftGraphItemBody uniqueBody()
Get the uniqueBody property: itemBody.
Returns:
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:
withAdditionalProperties
public MicrosoftGraphMessage withAdditionalProperties(Map
Set the additionalProperties property: message.
Overrides:
MicrosoftGraphMessage.withAdditionalProperties(Map<String,Object> additionalProperties)Parameters:
Returns:
withAttachments
public MicrosoftGraphMessage withAttachments(List
Set the attachments property: The fileAttachment and itemAttachment attachments for the message.
Parameters:
Returns:
withBccRecipients
public MicrosoftGraphMessage withBccRecipients(List
Set the bccRecipients property: The Bcc: recipients for the message.
Parameters:
Returns:
withBody
public MicrosoftGraphMessage withBody(MicrosoftGraphItemBody body)
Set the body property: itemBody.
Parameters:
Returns:
withBodyPreview
public MicrosoftGraphMessage withBodyPreview(String bodyPreview)
Set the bodyPreview property: The first 255 characters of the message body. It is in text format.
Parameters:
Returns:
withCategories
public MicrosoftGraphMessage withCategories(List
Set the categories property: The categories associated with the item.
Overrides:
MicrosoftGraphMessage.withCategories(List<String> categories)Parameters:
withCcRecipients
public MicrosoftGraphMessage withCcRecipients(List
Set the ccRecipients property: The Cc: recipients for the message.
Parameters:
Returns:
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:
withConversationId
public MicrosoftGraphMessage withConversationId(String conversationId)
Set the conversationId property: The ID of the conversation the email belongs to.
Parameters:
Returns:
withConversationIndex
public MicrosoftGraphMessage withConversationIndex(byte[] conversationIndex)
Set the conversationIndex property: Indicates the position of the message within the conversation.
Parameters:
Returns:
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:
withExtensions
public MicrosoftGraphMessage withExtensions(List
Set the extensions property: The collection of open extensions defined for the message. Nullable.
Parameters:
Returns:
withFlag
public MicrosoftGraphMessage withFlag(MicrosoftGraphFollowupFlag flag)
Set the flag property: followupFlag.
Parameters:
Returns:
withFrom
public MicrosoftGraphMessage withFrom(MicrosoftGraphRecipient from)
Set the from property: recipient.
Parameters:
Returns:
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:
Returns:
withId
public MicrosoftGraphMessage withId(String id)
Set the id property: Read-only.
Overrides:
MicrosoftGraphMessage.withId(String id)Parameters:
withImportance
public MicrosoftGraphMessage withImportance(MicrosoftGraphImportance importance)
Set the importance property: importance.
Parameters:
Returns:
withInferenceClassification
public MicrosoftGraphMessage withInferenceClassification(MicrosoftGraphInferenceClassificationType inferenceClassification)
Set the inferenceClassification property: inferenceClassificationType.
Parameters:
Returns:
withInternetMessageHeaders
public MicrosoftGraphMessage withInternetMessageHeaders(List
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:
Returns:
withInternetMessageId
public MicrosoftGraphMessage withInternetMessageId(String internetMessageId)
Set the internetMessageId property: The message ID in the format specified by RFC2822.
Parameters:
Returns:
withIsDeliveryReceiptRequested
public MicrosoftGraphMessage withIsDeliveryReceiptRequested(Boolean isDeliveryReceiptRequested)
Set the isDeliveryReceiptRequested property: Indicates whether a read receipt is requested for the message.
Parameters:
Returns:
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:
Returns:
withIsRead
public MicrosoftGraphMessage withIsRead(Boolean isRead)
Set the isRead property: Indicates whether the message has been read.
Parameters:
Returns:
withIsReadReceiptRequested
public MicrosoftGraphMessage withIsReadReceiptRequested(Boolean isReadReceiptRequested)
Set the isReadReceiptRequested property: Indicates whether a read receipt is requested for the message.
Parameters:
Returns:
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:
withMultiValueExtendedProperties
public MicrosoftGraphMessage withMultiValueExtendedProperties(List
Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the message. Nullable.
Parameters:
Returns:
withParentFolderId
public MicrosoftGraphMessage withParentFolderId(String parentFolderId)
Set the parentFolderId property: The unique identifier for the message's parent mailFolder.
Parameters:
Returns:
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:
Returns:
withReplyTo
public MicrosoftGraphMessage withReplyTo(List
Set the replyTo property: The email addresses to use when replying.
Parameters:
Returns:
withSender
public MicrosoftGraphMessage withSender(MicrosoftGraphRecipient sender)
Set the sender property: recipient.
Parameters:
Returns:
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:
Returns:
withSingleValueExtendedProperties
public MicrosoftGraphMessage withSingleValueExtendedProperties(List
Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the message. Nullable.
Parameters:
Returns:
withSubject
public MicrosoftGraphMessage withSubject(String subject)
Set the subject property: The subject of the message.
Parameters:
Returns:
withToRecipients
public MicrosoftGraphMessage withToRecipients(List
Set the toRecipients property: The To: recipients for the message.
Parameters:
Returns:
withUniqueBody
public MicrosoftGraphMessage withUniqueBody(MicrosoftGraphItemBody uniqueBody)
Set the uniqueBody property: itemBody.
Parameters:
Returns:
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:
Returns:
Applies to
Azure SDK for Java