Class MicrosoftGraphMessage

    • Constructor Detail

      • MicrosoftGraphMessage

        public MicrosoftGraphMessage()
    • 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.
      • 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.
      • 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.
      • 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.
      • 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 class MicrosoftGraphOutlookItem
        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 class MicrosoftGraphOutlookItem
        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 class MicrosoftGraphOutlookItem
        Parameters:
        lastModifiedDateTime - the lastModifiedDateTime value to set.
        Returns:
        the MicrosoftGraphOutlookItem object itself.