Class MicrosoftGraphMessage
java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOutlookItem
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphMessage
message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: message.Get the attachments property: The fileAttachment and itemAttachment attachments for the message.Get the bccRecipients property: The Bcc: recipients for the message.body()Get the body property: itemBody.Get the bodyPreview property: The first 255 characters of the message body.Get the ccRecipients property: The Cc: recipients for the message.Get the conversationId property: The ID of the conversation the email belongs to.byte[]Get the conversationIndex property: Indicates the position of the message within the conversation.Get the extensions property: The collection of open extensions defined for the message.flag()Get the flag property: followupFlag.from()Get the from property: recipient.Get the hasAttachments property: Indicates whether the message has attachments.Get the importance property: importance.Get the inferenceClassification property: inferenceClassificationType.Get the internetMessageHeaders property: A collection of message headers defined by RFC5322.Get the internetMessageId property: The message ID in the format specified by RFC2822.Get the isDeliveryReceiptRequested property: Indicates whether a read receipt is requested for the message.isDraft()Get the isDraft property: Indicates whether the message is a draft.isRead()Get the isRead property: Indicates whether the message has been read.Get the isReadReceiptRequested property: Indicates whether a read receipt is requested for the message.Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the message.Get the parentFolderId property: The unique identifier for the message's parent mailFolder.Get the receivedDateTime property: The date and time the message was received.replyTo()Get the replyTo property: The email addresses to use when replying.sender()Get the sender property: recipient.Get the sentDateTime property: The date and time the message was sent.Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the message.subject()Get the subject property: The subject of the message.Get the toRecipients property: The To: recipients for the message.Get the uniqueBody property: itemBody.voidvalidate()Validates the instance.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.withAdditionalProperties(Map<String, Object> additionalProperties) Set the additionalProperties property: message.withAttachments(List<MicrosoftGraphAttachment> attachments) Set the attachments property: The fileAttachment and itemAttachment attachments for the message.withBccRecipients(List<MicrosoftGraphRecipient> bccRecipients) Set the bccRecipients property: The Bcc: recipients for the message.Set the body property: itemBody.withBodyPreview(String bodyPreview) Set the bodyPreview property: The first 255 characters of the message body.withCategories(List<String> categories) Set the categories property: The categories associated with the item.withCcRecipients(List<MicrosoftGraphRecipient> ccRecipients) Set the ccRecipients property: The Cc: recipients for the message.withChangeKey(String changeKey) Set the changeKey property: Identifies the version of the item.withConversationId(String conversationId) Set the conversationId property: The ID of the conversation the email belongs to.withConversationIndex(byte[] conversationIndex) Set the conversationIndex property: Indicates the position of the message within the conversation.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.withExtensions(List<MicrosoftGraphExtension> extensions) Set the extensions property: The collection of open extensions defined for the message.Set the flag property: followupFlag.Set the from property: recipient.withHasAttachments(Boolean hasAttachments) Set the hasAttachments property: Indicates whether the message has attachments.Set the id property: Read-only.withImportance(MicrosoftGraphImportance importance) Set the importance property: importance.withInferenceClassification(MicrosoftGraphInferenceClassificationType inferenceClassification) Set the inferenceClassification property: inferenceClassificationType.withInternetMessageHeaders(List<MicrosoftGraphInternetMessageHeader> internetMessageHeaders) Set the internetMessageHeaders property: A collection of message headers defined by RFC5322.withInternetMessageId(String internetMessageId) Set the internetMessageId property: The message ID in the format specified by RFC2822.withIsDeliveryReceiptRequested(Boolean isDeliveryReceiptRequested) Set the isDeliveryReceiptRequested property: Indicates whether a read receipt is requested for the message.withIsDraft(Boolean isDraft) Set the isDraft property: Indicates whether the message is a draft.withIsRead(Boolean isRead) Set the isRead property: Indicates whether the message has been read.withIsReadReceiptRequested(Boolean isReadReceiptRequested) Set the isReadReceiptRequested property: Indicates whether a read receipt is requested for the message.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.withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties) Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the message.withParentFolderId(String parentFolderId) Set the parentFolderId property: The unique identifier for the message's parent mailFolder.withReceivedDateTime(OffsetDateTime receivedDateTime) Set the receivedDateTime property: The date and time the message was received.withReplyTo(List<MicrosoftGraphRecipient> replyTo) Set the replyTo property: The email addresses to use when replying.withSender(MicrosoftGraphRecipient sender) Set the sender property: recipient.withSentDateTime(OffsetDateTime sentDateTime) Set the sentDateTime property: The date and time the message was sent.withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties) Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the message.withSubject(String subject) Set the subject property: The subject of the message.withToRecipients(List<MicrosoftGraphRecipient> toRecipients) Set the toRecipients property: The To: recipients for the message.withUniqueBody(MicrosoftGraphItemBody uniqueBody) Set the uniqueBody property: itemBody.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 class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOutlookItem
categories, changeKey, createdDateTime, lastModifiedDateTimeMethods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
Constructor Details
-
MicrosoftGraphMessage
public MicrosoftGraphMessage()Creates an instance of MicrosoftGraphMessage class.
-
-
Method Details
-
bccRecipients
Get the bccRecipients property: The Bcc: recipients for the message.- Returns:
- the bccRecipients value.
-
withBccRecipients
Set the bccRecipients property: The Bcc: recipients for the message.- Parameters:
bccRecipients- the bccRecipients value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
body
Get the body property: itemBody.- Returns:
- the body value.
-
withBody
Set the body property: itemBody.- Parameters:
body- the body value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
bodyPreview
Get the bodyPreview property: The first 255 characters of the message body. It is in text format.- Returns:
- the bodyPreview value.
-
withBodyPreview
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.
-
ccRecipients
Get the ccRecipients property: The Cc: recipients for the message.- Returns:
- the ccRecipients value.
-
withCcRecipients
Set the ccRecipients property: The Cc: recipients for the message.- Parameters:
ccRecipients- the ccRecipients value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
conversationId
Get the conversationId property: The ID of the conversation the email belongs to.- Returns:
- the conversationId value.
-
withConversationId
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.
-
conversationIndex
public byte[] conversationIndex()Get the conversationIndex property: Indicates the position of the message within the conversation.- Returns:
- the conversationIndex value.
-
withConversationIndex
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.
-
flag
Get the flag property: followupFlag.- Returns:
- the flag value.
-
withFlag
Set the flag property: followupFlag.- Parameters:
flag- the flag value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
from
Get the from property: recipient.- Returns:
- the from value.
-
withFrom
Set the from property: recipient.- Parameters:
from- the from value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
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 <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>.- Returns:
- the hasAttachments value.
-
withHasAttachments
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 <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>.- Parameters:
hasAttachments- the hasAttachments value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
importance
Get the importance property: importance.- Returns:
- the importance value.
-
withImportance
Set the importance property: importance.- Parameters:
importance- the importance value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
inferenceClassification
Get the inferenceClassification property: inferenceClassificationType.- Returns:
- the inferenceClassification value.
-
withInferenceClassification
public MicrosoftGraphMessage withInferenceClassification(MicrosoftGraphInferenceClassificationType inferenceClassification) Set the inferenceClassification property: inferenceClassificationType.- Parameters:
inferenceClassification- the inferenceClassification value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
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.
-
withInternetMessageHeaders
public MicrosoftGraphMessage withInternetMessageHeaders(List<MicrosoftGraphInternetMessageHeader> 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.
-
internetMessageId
Get the internetMessageId property: The message ID in the format specified by RFC2822.- Returns:
- the internetMessageId value.
-
withInternetMessageId
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.
-
isDeliveryReceiptRequested
Get the isDeliveryReceiptRequested property: Indicates whether a read receipt is requested for the message.- Returns:
- the isDeliveryReceiptRequested value.
-
withIsDeliveryReceiptRequested
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.
-
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.
-
withIsDraft
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.
-
isRead
Get the isRead property: Indicates whether the message has been read.- Returns:
- the isRead value.
-
withIsRead
Set the isRead property: Indicates whether the message has been read.- Parameters:
isRead- the isRead value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
isReadReceiptRequested
Get the isReadReceiptRequested property: Indicates whether a read receipt is requested for the message.- Returns:
- the isReadReceiptRequested value.
-
withIsReadReceiptRequested
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.
-
parentFolderId
Get the parentFolderId property: The unique identifier for the message's parent mailFolder.- Returns:
- the parentFolderId value.
-
withParentFolderId
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.
-
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.
-
withReceivedDateTime
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.
-
replyTo
Get the replyTo property: The email addresses to use when replying.- Returns:
- the replyTo value.
-
withReplyTo
Set the replyTo property: The email addresses to use when replying.- Parameters:
replyTo- the replyTo value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
sender
Get the sender property: recipient.- Returns:
- the sender value.
-
withSender
Set the sender property: recipient.- Parameters:
sender- the sender value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
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.
-
withSentDateTime
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.
-
subject
Get the subject property: The subject of the message.- Returns:
- the subject value.
-
withSubject
Set the subject property: The subject of the message.- Parameters:
subject- the subject value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
toRecipients
Get the toRecipients property: The To: recipients for the message.- Returns:
- the toRecipients value.
-
withToRecipients
Set the toRecipients property: The To: recipients for the message.- Parameters:
toRecipients- the toRecipients value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
uniqueBody
Get the uniqueBody property: itemBody.- Returns:
- the uniqueBody value.
-
withUniqueBody
Set the uniqueBody property: itemBody.- Parameters:
uniqueBody- the uniqueBody value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
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.
-
withWebLink
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.
-
attachments
Get the attachments property: The fileAttachment and itemAttachment attachments for the message.- Returns:
- the attachments value.
-
withAttachments
Set the attachments property: The fileAttachment and itemAttachment attachments for the message.- Parameters:
attachments- the attachments value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
extensions
Get the extensions property: The collection of open extensions defined for the message. Nullable.- Returns:
- the extensions value.
-
withExtensions
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.
-
multiValueExtendedProperties
Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the message. Nullable.- Returns:
- the multiValueExtendedProperties value.
-
withMultiValueExtendedProperties
public MicrosoftGraphMessage withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> 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.
-
singleValueExtendedProperties
Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the message. Nullable.- Returns:
- the singleValueExtendedProperties value.
-
withSingleValueExtendedProperties
public MicrosoftGraphMessage withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> 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.
-
additionalProperties
Get the additionalProperties property: message.- Overrides:
additionalPropertiesin classMicrosoftGraphOutlookItem- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: message.- Overrides:
withAdditionalPropertiesin classMicrosoftGraphOutlookItem- Parameters:
additionalProperties- the additionalProperties value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
withCategories
Set the categories property: The categories associated with the item.- Overrides:
withCategoriesin classMicrosoftGraphOutlookItem- Parameters:
categories- the categories value to set.- Returns:
- the MicrosoftGraphOutlookItem object itself.
-
withChangeKey
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:
withChangeKeyin classMicrosoftGraphOutlookItem- Parameters:
changeKey- the changeKey value to set.- Returns:
- the MicrosoftGraphOutlookItem object itself.
-
withCreatedDateTime
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:
withCreatedDateTimein classMicrosoftGraphOutlookItem- Parameters:
createdDateTime- the createdDateTime value to set.- Returns:
- the MicrosoftGraphOutlookItem object itself.
-
withLastModifiedDateTime
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:
withLastModifiedDateTimein classMicrosoftGraphOutlookItem- Parameters:
lastModifiedDateTime- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphOutlookItem object itself.
-
withId
Set the id property: Read-only.- Overrides:
withIdin classMicrosoftGraphOutlookItem- Parameters:
id- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classMicrosoftGraphOutlookItem- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-