Class MicrosoftGraphPost


public final class MicrosoftGraphPost extends MicrosoftGraphOutlookItem
post.
  • Constructor Details

    • MicrosoftGraphPost

      public MicrosoftGraphPost()
      Creates an instance of MicrosoftGraphPost class.
  • Method Details

    • body

      public MicrosoftGraphItemBody 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 MicrosoftGraphPost object itself.
    • conversationId

      public String conversationId()
      Get the conversationId property: Unique ID of the conversation. Read-only.
      Returns:
      the conversationId value.
    • withConversationId

      public MicrosoftGraphPost withConversationId(String conversationId)
      Set the conversationId property: Unique ID of the conversation. Read-only.
      Parameters:
      conversationId - the conversationId value to set.
      Returns:
      the MicrosoftGraphPost object itself.
    • conversationThreadId

      public String conversationThreadId()
      Get the conversationThreadId property: Unique ID of the conversation thread. Read-only.
      Returns:
      the conversationThreadId value.
    • withConversationThreadId

      public MicrosoftGraphPost withConversationThreadId(String conversationThreadId)
      Set the conversationThreadId property: Unique ID of the conversation thread. Read-only.
      Parameters:
      conversationThreadId - the conversationThreadId value to set.
      Returns:
      the MicrosoftGraphPost object itself.
    • from

      public MicrosoftGraphRecipient 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 MicrosoftGraphPost object itself.
    • hasAttachments

      public Boolean hasAttachments()
      Get the hasAttachments property: Indicates whether the post has at least one attachment. This is a default property.
      Returns:
      the hasAttachments value.
    • withHasAttachments

      public MicrosoftGraphPost withHasAttachments(Boolean hasAttachments)
      Set the hasAttachments property: Indicates whether the post has at least one attachment. This is a default property.
      Parameters:
      hasAttachments - the hasAttachments value to set.
      Returns:
      the MicrosoftGraphPost object itself.
    • newParticipants

      public List<MicrosoftGraphRecipient> newParticipants()
      Get the newParticipants property: Conversation participants that were added to the thread as part of this post.
      Returns:
      the newParticipants value.
    • withNewParticipants

      public MicrosoftGraphPost withNewParticipants(List<MicrosoftGraphRecipient> newParticipants)
      Set the newParticipants property: Conversation participants that were added to the thread as part of this post.
      Parameters:
      newParticipants - the newParticipants value to set.
      Returns:
      the MicrosoftGraphPost object itself.
    • receivedDateTime

      public OffsetDateTime receivedDateTime()
      Get the receivedDateTime property: Specifies when the post was received. The DateTimeOffset 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'.
      Returns:
      the receivedDateTime value.
    • withReceivedDateTime

      public MicrosoftGraphPost withReceivedDateTime(OffsetDateTime receivedDateTime)
      Set the receivedDateTime property: Specifies when the post was received. The DateTimeOffset 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'.
      Parameters:
      receivedDateTime - the receivedDateTime value to set.
      Returns:
      the MicrosoftGraphPost object itself.
    • sender

      public MicrosoftGraphRecipient sender()
      Get the sender property: recipient.
      Returns:
      the sender value.
    • withSender

      public MicrosoftGraphPost withSender(MicrosoftGraphRecipient sender)
      Set the sender property: recipient.
      Parameters:
      sender - the sender value to set.
      Returns:
      the MicrosoftGraphPost object itself.
    • attachments

      public List<MicrosoftGraphAttachment> attachments()
      Get the attachments property: Read-only. Nullable.
      Returns:
      the attachments value.
    • withAttachments

      public MicrosoftGraphPost withAttachments(List<MicrosoftGraphAttachment> attachments)
      Set the attachments property: Read-only. Nullable.
      Parameters:
      attachments - the attachments value to set.
      Returns:
      the MicrosoftGraphPost object itself.
    • extensions

      public List<MicrosoftGraphExtension> extensions()
      Get the extensions property: The collection of open extensions defined for the post. Read-only. Nullable.
      Returns:
      the extensions value.
    • withExtensions

      public MicrosoftGraphPost withExtensions(List<MicrosoftGraphExtension> extensions)
      Set the extensions property: The collection of open extensions defined for the post. Read-only. Nullable.
      Parameters:
      extensions - the extensions value to set.
      Returns:
      the MicrosoftGraphPost object itself.
    • inReplyTo

      public MicrosoftGraphPost inReplyTo()
      Get the inReplyTo property: post.
      Returns:
      the inReplyTo value.
    • withInReplyTo

      public MicrosoftGraphPost withInReplyTo(MicrosoftGraphPost inReplyTo)
      Set the inReplyTo property: post.
      Parameters:
      inReplyTo - the inReplyTo value to set.
      Returns:
      the MicrosoftGraphPost object itself.
    • multiValueExtendedProperties

      public List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties()
      Get the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the post. Read-only. Nullable.
      Returns:
      the multiValueExtendedProperties value.
    • withMultiValueExtendedProperties

      public MicrosoftGraphPost withMultiValueExtendedProperties(List<MicrosoftGraphMultiValueLegacyExtendedProperty> multiValueExtendedProperties)
      Set the multiValueExtendedProperties property: The collection of multi-value extended properties defined for the post. Read-only. Nullable.
      Parameters:
      multiValueExtendedProperties - the multiValueExtendedProperties value to set.
      Returns:
      the MicrosoftGraphPost object itself.
    • singleValueExtendedProperties

      public List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties()
      Get the singleValueExtendedProperties property: The collection of single-value extended properties defined for the post. Read-only. Nullable.
      Returns:
      the singleValueExtendedProperties value.
    • withSingleValueExtendedProperties

      public MicrosoftGraphPost withSingleValueExtendedProperties(List<MicrosoftGraphSingleValueLegacyExtendedProperty> singleValueExtendedProperties)
      Set the singleValueExtendedProperties property: The collection of single-value extended properties defined for the post. Read-only. Nullable.
      Parameters:
      singleValueExtendedProperties - the singleValueExtendedProperties value to set.
      Returns:
      the MicrosoftGraphPost object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: post.
      Overrides:
      additionalProperties in class MicrosoftGraphOutlookItem
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphPost withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: post.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphOutlookItem
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphPost object itself.
    • withCategories

      public MicrosoftGraphPost withCategories(List<String> categories)
      Set the categories property: The categories associated with the item.
      Overrides:
      withCategories in class MicrosoftGraphOutlookItem
      Parameters:
      categories - the categories value to set.
      Returns:
      the MicrosoftGraphOutlookItem object itself.
    • withChangeKey

      public MicrosoftGraphPost 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 MicrosoftGraphPost 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 MicrosoftGraphPost 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.
    • withId

      public MicrosoftGraphPost withId(String id)
      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphOutlookItem
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphOutlookItem
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.