Class Message

All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject
Direct Known Subclasses:
CalendarSharingMessage, EventMessage

public class Message extends OutlookItem implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Message.
  • Field Details

    • bccRecipients

      @SerializedName(value="bccRecipients", alternate="BccRecipients") @Expose @Nullable public List<Recipient> bccRecipients
      The Bcc Recipients. The Bcc: recipients for the message.
    • body

      @SerializedName(value="body", alternate="Body") @Expose @Nullable public ItemBody body
      The Body. The body of the message. It can be in HTML or text format. Find out about safe HTML in a message body.
    • bodyPreview

      @SerializedName(value="bodyPreview", alternate="BodyPreview") @Expose @Nullable public String bodyPreview
      The Body Preview. The first 255 characters of the message body. It is in text format.
    • ccRecipients

      @SerializedName(value="ccRecipients", alternate="CcRecipients") @Expose @Nullable public List<Recipient> ccRecipients
      The Cc Recipients. The Cc: recipients for the message.
    • conversationId

      @SerializedName(value="conversationId", alternate="ConversationId") @Expose @Nullable public String conversationId
      The Conversation Id. The ID of the conversation the email belongs to.
    • conversationIndex

      @SerializedName(value="conversationIndex", alternate="ConversationIndex") @Expose @Nullable public byte[] conversationIndex
      The Conversation Index. Indicates the position of the message within the conversation.
    • flag

      @SerializedName(value="flag", alternate="Flag") @Expose @Nullable public FollowupFlag flag
      The Flag. The flag value that indicates the status, start date, due date, or completion date for the message.
    • from

      @SerializedName(value="from", alternate="From") @Expose @Nullable public Recipient from
      The From. The owner of the mailbox from which the message is sent. In most cases, this value is the same as the sender property, except for sharing or delegation scenarios. The value must correspond to the actual mailbox used. Find out more about setting the from and sender properties of a message.
    • hasAttachments

      @SerializedName(value="hasAttachments", alternate="HasAttachments") @Expose @Nullable public Boolean hasAttachments
      The Has Attachments. 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 &lt;IMG src='cid:image001.jpg@01D26CD8.6C05F070'&gt;.
    • importance

      @SerializedName(value="importance", alternate="Importance") @Expose @Nullable public Importance importance
      The Importance.
    • inferenceClassification

      @SerializedName(value="inferenceClassification", alternate="InferenceClassification") @Expose @Nullable public InferenceClassificationType inferenceClassification
      The Inference Classification.
    • internetMessageHeaders

      @SerializedName(value="internetMessageHeaders", alternate="InternetMessageHeaders") @Expose @Nullable public List<InternetMessageHeader> internetMessageHeaders
      The Internet Message Headers.
    • internetMessageId

      @SerializedName(value="internetMessageId", alternate="InternetMessageId") @Expose @Nullable public String internetMessageId
      The Internet Message Id.
    • isDeliveryReceiptRequested

      @SerializedName(value="isDeliveryReceiptRequested", alternate="IsDeliveryReceiptRequested") @Expose @Nullable public Boolean isDeliveryReceiptRequested
      The Is Delivery Receipt Requested.
    • isDraft

      @SerializedName(value="isDraft", alternate="IsDraft") @Expose @Nullable public Boolean isDraft
      The Is Draft.
    • isRead

      @SerializedName(value="isRead", alternate="IsRead") @Expose @Nullable public Boolean isRead
      The Is Read.
    • isReadReceiptRequested

      @SerializedName(value="isReadReceiptRequested", alternate="IsReadReceiptRequested") @Expose @Nullable public Boolean isReadReceiptRequested
      The Is Read Receipt Requested.
    • parentFolderId

      @SerializedName(value="parentFolderId", alternate="ParentFolderId") @Expose @Nullable public String parentFolderId
      The Parent Folder Id.
    • receivedDateTime

      @SerializedName(value="receivedDateTime", alternate="ReceivedDateTime") @Expose @Nullable public OffsetDateTime receivedDateTime
      The Received Date Time.
    • replyTo

      @SerializedName(value="replyTo", alternate="ReplyTo") @Expose @Nullable public List<Recipient> replyTo
      The Reply To.
    • sender

      @SerializedName(value="sender", alternate="Sender") @Expose @Nullable public Recipient sender
      The Sender.
    • sentDateTime

      @SerializedName(value="sentDateTime", alternate="SentDateTime") @Expose @Nullable public OffsetDateTime sentDateTime
      The Sent Date Time.
    • subject

      @SerializedName(value="subject", alternate="Subject") @Expose @Nullable public String subject
      The Subject.
    • toRecipients

      @SerializedName(value="toRecipients", alternate="ToRecipients") @Expose @Nullable public List<Recipient> toRecipients
      The To Recipients.
    • uniqueBody

      @SerializedName(value="uniqueBody", alternate="UniqueBody") @Expose @Nullable public ItemBody uniqueBody
      The Unique Body.
    • attachments

      @SerializedName(value="attachments", alternate="Attachments") @Expose @Nullable public AttachmentCollectionPage attachments
      The Attachments. The fileAttachment and itemAttachment attachments for the message.
    • extensions

      @SerializedName(value="extensions", alternate="Extensions") @Expose @Nullable public ExtensionCollectionPage extensions
      The Extensions. The collection of open extensions defined for the message. Nullable.
    • multiValueExtendedProperties

      @SerializedName(value="multiValueExtendedProperties", alternate="MultiValueExtendedProperties") @Expose @Nullable public MultiValueLegacyExtendedPropertyCollectionPage multiValueExtendedProperties
      The Multi Value Extended Properties. The collection of multi-value extended properties defined for the message. Nullable.
    • singleValueExtendedProperties

      @SerializedName(value="singleValueExtendedProperties", alternate="SingleValueExtendedProperties") @Expose @Nullable public SingleValueLegacyExtendedPropertyCollectionPage singleValueExtendedProperties
      The Single Value Extended Properties. The collection of single-value extended properties defined for the message. Nullable.
  • Constructor Details

    • Message

      public Message()
  • Method Details

    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Overrides:
      setRawObject in class OutlookItem
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to