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
-
public final class MicrosoftGraphMessage extends MicrosoftGraphOutlookItem
message.
-
-
Constructor Summary
Constructors Constructor Description MicrosoftGraphMessage()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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<MicrosoftGraphExtensionInner>
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.Boolean
hasAttachments()
Get the hasAttachments property: Indicates whether the message has attachments.MicrosoftGraphImportance
importance()
Get the importance property: The importance property.MicrosoftGraphInferenceClassificationType
inferenceClassification()
Get the inferenceClassification property: The inferenceClassification property.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.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<MicrosoftGraphExtensionInner> 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: The importance property.MicrosoftGraphMessage
withInferenceClassification(MicrosoftGraphInferenceClassificationType inferenceClassification)
Set the inferenceClassification property: The inferenceClassification property.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 class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphOutlookItem
categories, changeKey, createdDateTime, lastModifiedDateTime
-
Methods inherited from class com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
id
-
-
-
-
Method Detail
-
bccRecipients
public List<MicrosoftGraphRecipient> bccRecipients()
Get the bccRecipients property: The Bcc: recipients for the message.- Returns:
- the bccRecipients value.
-
withBccRecipients
public MicrosoftGraphMessage withBccRecipients(List<MicrosoftGraphRecipient> bccRecipients)
Set the bccRecipients property: The Bcc: recipients for the message.- Parameters:
bccRecipients
- the bccRecipients value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
body
public MicrosoftGraphItemBody body()
Get the body property: itemBody.- Returns:
- the body value.
-
withBody
public MicrosoftGraphMessage withBody(MicrosoftGraphItemBody body)
Set the body property: itemBody.- Parameters:
body
- the body value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
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.
-
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.
-
ccRecipients
public List<MicrosoftGraphRecipient> ccRecipients()
Get the ccRecipients property: The Cc: recipients for the message.- Returns:
- the ccRecipients value.
-
withCcRecipients
public MicrosoftGraphMessage withCcRecipients(List<MicrosoftGraphRecipient> ccRecipients)
Set the ccRecipients property: The Cc: recipients for the message.- Parameters:
ccRecipients
- the ccRecipients value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
conversationId
public String conversationId()
Get the conversationId property: The ID of the conversation the email belongs to.- Returns:
- the conversationId value.
-
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.
-
conversationIndex
public byte[] conversationIndex()
Get the conversationIndex property: Indicates the position of the message within the conversation.- Returns:
- the conversationIndex value.
-
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.
-
flag
public MicrosoftGraphFollowupFlag flag()
Get the flag property: followupFlag.- Returns:
- the flag value.
-
withFlag
public MicrosoftGraphMessage withFlag(MicrosoftGraphFollowupFlag flag)
Set the flag property: followupFlag.- Parameters:
flag
- the flag value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
from
public MicrosoftGraphRecipient from()
Get the from property: recipient.- Returns:
- the from value.
-
withFrom
public MicrosoftGraphMessage withFrom(MicrosoftGraphRecipient from)
Set the from property: recipient.- Parameters:
from
- the from value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
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 <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>.- Returns:
- the hasAttachments value.
-
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 <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>.- Parameters:
hasAttachments
- the hasAttachments value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
importance
public MicrosoftGraphImportance importance()
Get the importance property: The importance property.- Returns:
- the importance value.
-
withImportance
public MicrosoftGraphMessage withImportance(MicrosoftGraphImportance importance)
Set the importance property: The importance property.- Parameters:
importance
- the importance value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
inferenceClassification
public MicrosoftGraphInferenceClassificationType inferenceClassification()
Get the inferenceClassification property: The inferenceClassification property.- Returns:
- the inferenceClassification value.
-
withInferenceClassification
public MicrosoftGraphMessage withInferenceClassification(MicrosoftGraphInferenceClassificationType inferenceClassification)
Set the inferenceClassification property: The inferenceClassification property.- Parameters:
inferenceClassification
- the inferenceClassification value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
internetMessageHeaders
public List<MicrosoftGraphInternetMessageHeader> 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
public String internetMessageId()
Get the internetMessageId property: The message ID in the format specified by RFC2822.- Returns:
- the internetMessageId value.
-
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.
-
isDeliveryReceiptRequested
public Boolean isDeliveryReceiptRequested()
Get the isDeliveryReceiptRequested property: Indicates whether a read receipt is requested for the message.- Returns:
- the isDeliveryReceiptRequested value.
-
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.
-
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.
-
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.
-
isRead
public Boolean isRead()
Get the isRead property: Indicates whether the message has been read.- Returns:
- the isRead value.
-
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.
-
isReadReceiptRequested
public Boolean isReadReceiptRequested()
Get the isReadReceiptRequested property: Indicates whether a read receipt is requested for the message.- Returns:
- the isReadReceiptRequested value.
-
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.
-
parentFolderId
public String parentFolderId()
Get the parentFolderId property: The unique identifier for the message's parent mailFolder.- Returns:
- the parentFolderId value.
-
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.
-
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.
-
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.
-
replyTo
public List<MicrosoftGraphRecipient> replyTo()
Get the replyTo property: The email addresses to use when replying.- Returns:
- the replyTo value.
-
withReplyTo
public MicrosoftGraphMessage withReplyTo(List<MicrosoftGraphRecipient> replyTo)
Set the replyTo property: The email addresses to use when replying.- Parameters:
replyTo
- the replyTo value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
sender
public MicrosoftGraphRecipient sender()
Get the sender property: recipient.- Returns:
- the sender value.
-
withSender
public MicrosoftGraphMessage withSender(MicrosoftGraphRecipient sender)
Set the sender property: recipient.- Parameters:
sender
- the sender value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
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.
-
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.
-
subject
public String subject()
Get the subject property: The subject of the message.- Returns:
- the subject value.
-
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.
-
toRecipients
public List<MicrosoftGraphRecipient> toRecipients()
Get the toRecipients property: The To: recipients for the message.- Returns:
- the toRecipients value.
-
withToRecipients
public MicrosoftGraphMessage withToRecipients(List<MicrosoftGraphRecipient> toRecipients)
Set the toRecipients property: The To: recipients for the message.- Parameters:
toRecipients
- the toRecipients value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
uniqueBody
public MicrosoftGraphItemBody uniqueBody()
Get the uniqueBody property: itemBody.- Returns:
- the uniqueBody value.
-
withUniqueBody
public MicrosoftGraphMessage withUniqueBody(MicrosoftGraphItemBody uniqueBody)
Set the uniqueBody property: itemBody.- Parameters:
uniqueBody
- the uniqueBody value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
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.
-
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.
-
attachments
public List<MicrosoftGraphAttachment> attachments()
Get the attachments property: The fileAttachment and itemAttachment attachments for the message.- Returns:
- the attachments value.
-
withAttachments
public MicrosoftGraphMessage withAttachments(List<MicrosoftGraphAttachment> 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.
-
extensions
public List<MicrosoftGraphExtensionInner> extensions()
Get the extensions property: The collection of open extensions defined for the message. Nullable.- Returns:
- the extensions value.
-
withExtensions
public MicrosoftGraphMessage withExtensions(List<MicrosoftGraphExtensionInner> 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.
-
multiValueExtendedProperties
public List<MicrosoftGraphMultiValueLegacyExtendedProperty> 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
public List<MicrosoftGraphSingleValueLegacyExtendedProperty> 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
public Map<String,Object> additionalProperties()
Get the additionalProperties property: message.- Overrides:
additionalProperties
in classMicrosoftGraphOutlookItem
- Returns:
- the additionalProperties value.
-
withAdditionalProperties
public MicrosoftGraphMessage withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: message.- Overrides:
withAdditionalProperties
in classMicrosoftGraphOutlookItem
- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the MicrosoftGraphMessage object itself.
-
withCategories
public MicrosoftGraphMessage withCategories(List<String> categories)
Set the categories property: The categories associated with the item.- Overrides:
withCategories
in classMicrosoftGraphOutlookItem
- Parameters:
categories
- the categories value to set.- Returns:
- the MicrosoftGraphOutlookItem 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:
withChangeKey
in classMicrosoftGraphOutlookItem
- Parameters:
changeKey
- the changeKey value to set.- Returns:
- the MicrosoftGraphOutlookItem 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:
withCreatedDateTime
in classMicrosoftGraphOutlookItem
- Parameters:
createdDateTime
- the createdDateTime value to set.- Returns:
- the MicrosoftGraphOutlookItem 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:
withLastModifiedDateTime
in classMicrosoftGraphOutlookItem
- Parameters:
lastModifiedDateTime
- the lastModifiedDateTime value to set.- Returns:
- the MicrosoftGraphOutlookItem object itself.
-
withId
public MicrosoftGraphMessage withId(String id)
Set the id property: Read-only.- Overrides:
withId
in classMicrosoftGraphOutlookItem
- Parameters:
id
- the id value to set.- Returns:
- the MicrosoftGraphEntity object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classMicrosoftGraphOutlookItem
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-