Class Post

All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel

@Generated("com.microsoft.kiota") public class Post extends OutlookItem implements com.microsoft.kiota.serialization.Parsable
  • Constructor Details

    • Post

      public Post()
      Instantiates a new Post and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static Post createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a Post
    • getAttachments

      @Nullable public List<Attachment> getAttachments()
      Gets the attachments property value. Read-only. Nullable. Supports $expand.
      Returns:
      a List<Attachment>
    • getBody

      @Nullable public ItemBody getBody()
      Gets the body property value. The contents of the post. This is a default property. This property can be null.
      Returns:
      a ItemBody
    • getConversationId

      @Nullable public String getConversationId()
      Gets the conversationId property value. Unique ID of the conversation. Read-only.
      Returns:
      a String
    • getConversationThreadId

      @Nullable public String getConversationThreadId()
      Gets the conversationThreadId property value. Unique ID of the conversation thread. Read-only.
      Returns:
      a String
    • getExtensions

      @Nullable public List<Extension> getExtensions()
      Gets the extensions property value. The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand.
      Returns:
      a List<Extension>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      getFieldDeserializers in class OutlookItem
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFrom

      @Nullable public Recipient getFrom()
      Gets the from property value. The from property
      Returns:
      a Recipient
    • getHasAttachments

      @Nullable public Boolean getHasAttachments()
      Gets the hasAttachments property value. Indicates whether the post has at least one attachment. This is a default property.
      Returns:
      a Boolean
    • getInReplyTo

      @Nullable public Post getInReplyTo()
      Gets the inReplyTo property value. Read-only. Supports $expand.
      Returns:
      a Post
    • getMultiValueExtendedProperties

      @Nullable public List<MultiValueLegacyExtendedProperty> getMultiValueExtendedProperties()
      Gets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the post. Read-only. Nullable.
      Returns:
      a List<MultiValueLegacyExtendedProperty>
    • getNewParticipants

      @Nullable public List<Recipient> getNewParticipants()
      Gets the newParticipants property value. Conversation participants that were added to the thread as part of this post.
      Returns:
      a List<Recipient>
    • getReceivedDateTime

      @Nullable public OffsetDateTime getReceivedDateTime()
      Gets the receivedDateTime property value. 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 is 2014-01-01T00:00:00Z
      Returns:
      a OffsetDateTime
    • getSender

      @Nullable public Recipient getSender()
      Gets the sender property value. Contains the address of the sender. The value of Sender is assumed to be the address of the authenticated user in the case when Sender is not specified. This is a default property.
      Returns:
      a Recipient
    • getSingleValueExtendedProperties

      @Nullable public List<SingleValueLegacyExtendedProperty> getSingleValueExtendedProperties()
      Gets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the post. Read-only. Nullable.
      Returns:
      a List<SingleValueLegacyExtendedProperty>
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Overrides:
      serialize in class OutlookItem
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAttachments

      public void setAttachments(@Nullable List<Attachment> value)
      Sets the attachments property value. Read-only. Nullable. Supports $expand.
      Parameters:
      value - Value to set for the attachments property.
    • setBody

      public void setBody(@Nullable ItemBody value)
      Sets the body property value. The contents of the post. This is a default property. This property can be null.
      Parameters:
      value - Value to set for the body property.
    • setConversationId

      public void setConversationId(@Nullable String value)
      Sets the conversationId property value. Unique ID of the conversation. Read-only.
      Parameters:
      value - Value to set for the conversationId property.
    • setConversationThreadId

      public void setConversationThreadId(@Nullable String value)
      Sets the conversationThreadId property value. Unique ID of the conversation thread. Read-only.
      Parameters:
      value - Value to set for the conversationThreadId property.
    • setExtensions

      public void setExtensions(@Nullable List<Extension> value)
      Sets the extensions property value. The collection of open extensions defined for the post. Read-only. Nullable. Supports $expand.
      Parameters:
      value - Value to set for the extensions property.
    • setFrom

      public void setFrom(@Nullable Recipient value)
      Sets the from property value. The from property
      Parameters:
      value - Value to set for the from property.
    • setHasAttachments

      public void setHasAttachments(@Nullable Boolean value)
      Sets the hasAttachments property value. Indicates whether the post has at least one attachment. This is a default property.
      Parameters:
      value - Value to set for the hasAttachments property.
    • setInReplyTo

      public void setInReplyTo(@Nullable Post value)
      Sets the inReplyTo property value. Read-only. Supports $expand.
      Parameters:
      value - Value to set for the inReplyTo property.
    • setMultiValueExtendedProperties

      public void setMultiValueExtendedProperties(@Nullable List<MultiValueLegacyExtendedProperty> value)
      Sets the multiValueExtendedProperties property value. The collection of multi-value extended properties defined for the post. Read-only. Nullable.
      Parameters:
      value - Value to set for the multiValueExtendedProperties property.
    • setNewParticipants

      public void setNewParticipants(@Nullable List<Recipient> value)
      Sets the newParticipants property value. Conversation participants that were added to the thread as part of this post.
      Parameters:
      value - Value to set for the newParticipants property.
    • setReceivedDateTime

      public void setReceivedDateTime(@Nullable OffsetDateTime value)
      Sets the receivedDateTime property value. 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 is 2014-01-01T00:00:00Z
      Parameters:
      value - Value to set for the receivedDateTime property.
    • setSender

      public void setSender(@Nullable Recipient value)
      Sets the sender property value. Contains the address of the sender. The value of Sender is assumed to be the address of the authenticated user in the case when Sender is not specified. This is a default property.
      Parameters:
      value - Value to set for the sender property.
    • setSingleValueExtendedProperties

      public void setSingleValueExtendedProperties(@Nullable List<SingleValueLegacyExtendedProperty> value)
      Sets the singleValueExtendedProperties property value. The collection of single-value extended properties defined for the post. Read-only. Nullable.
      Parameters:
      value - Value to set for the singleValueExtendedProperties property.