Class EngagementConversationMessage

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.EngagementConversationMessage
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable, com.microsoft.kiota.store.BackedModel
Direct Known Subclasses:
EngagementConversationDiscussionMessage, EngagementConversationQuestionMessage, EngagementConversationSystemMessage

@Generated("com.microsoft.kiota") public class EngagementConversationMessage extends Entity implements com.microsoft.kiota.serialization.Parsable
A Viva Engage conversation message.
  • Constructor Details

    • EngagementConversationMessage

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

    • createFromDiscriminatorValue

      @Nonnull public static EngagementConversationMessage 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 EngagementConversationMessage
    • getBody

      @Nullable public ItemBody getBody()
      Gets the body property value. The body property
      Returns:
      a ItemBody
    • getConversation

      @Nullable public EngagementConversation getConversation()
      Gets the conversation property value. The conversation property
      Returns:
      a EngagementConversation
    • getCreatedDateTime

      @Nullable public OffsetDateTime getCreatedDateTime()
      Gets the createdDateTime property value. The date and time when the message was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Returns:
      a OffsetDateTime
    • getCreationMode

      @Nullable public EngagementCreationMode getCreationMode()
      Gets the creationMode property value. Indicates that the resource is in migration state and is currently being used for migration purposes.
      Returns:
      a EngagementCreationMode
    • 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 Entity
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getFrom

      @Nullable public EngagementIdentitySet getFrom()
      Gets the from property value. Identity of the sender of the message.
      Returns:
      a EngagementIdentitySet
    • getLastModifiedDateTime

      @Nullable public OffsetDateTime getLastModifiedDateTime()
      Gets the lastModifiedDateTime property value. The date and time when message was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Returns:
      a OffsetDateTime
    • getReactions

      @Nullable public List<EngagementConversationMessageReaction> getReactions()
      Gets the reactions property value. A collection of reactions (such as like and smile) that users have applied to this message.
      Returns:
      a List<EngagementConversationMessageReaction>
    • getReplies

      @Nullable public List<EngagementConversationMessage> getReplies()
      Gets the replies property value. A collection of messages that are replies to this message and form a threaded discussion.
      Returns:
      a List<EngagementConversationMessage>
    • getReplyTo

      @Nullable public EngagementConversationMessage getReplyTo()
      Gets the replyTo property value. The parent message to which this message is a reply, if it is part of a reply chain.
      Returns:
      a EngagementConversationMessage
    • getReplyToId

      @Nullable public String getReplyToId()
      Gets the replyToId property value. The ID of the parent message to which this message is a reply, if applicable.
      Returns:
      a String
    • 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 Entity
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setBody

      public void setBody(@Nullable ItemBody value)
      Sets the body property value. The body property
      Parameters:
      value - Value to set for the body property.
    • setConversation

      public void setConversation(@Nullable EngagementConversation value)
      Sets the conversation property value. The conversation property
      Parameters:
      value - Value to set for the conversation property.
    • setCreatedDateTime

      public void setCreatedDateTime(@Nullable OffsetDateTime value)
      Sets the createdDateTime property value. The date and time when the message was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Parameters:
      value - Value to set for the createdDateTime property.
    • setCreationMode

      public void setCreationMode(@Nullable EngagementCreationMode value)
      Sets the creationMode property value. Indicates that the resource is in migration state and is currently being used for migration purposes.
      Parameters:
      value - Value to set for the creationMode property.
    • setFrom

      public void setFrom(@Nullable EngagementIdentitySet value)
      Sets the from property value. Identity of the sender of the message.
      Parameters:
      value - Value to set for the from property.
    • setLastModifiedDateTime

      public void setLastModifiedDateTime(@Nullable OffsetDateTime value)
      Sets the lastModifiedDateTime property value. The date and time when message was last modified. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
      Parameters:
      value - Value to set for the lastModifiedDateTime property.
    • setReactions

      public void setReactions(@Nullable List<EngagementConversationMessageReaction> value)
      Sets the reactions property value. A collection of reactions (such as like and smile) that users have applied to this message.
      Parameters:
      value - Value to set for the reactions property.
    • setReplies

      public void setReplies(@Nullable List<EngagementConversationMessage> value)
      Sets the replies property value. A collection of messages that are replies to this message and form a threaded discussion.
      Parameters:
      value - Value to set for the replies property.
    • setReplyTo

      public void setReplyTo(@Nullable EngagementConversationMessage value)
      Sets the replyTo property value. The parent message to which this message is a reply, if it is part of a reply chain.
      Parameters:
      value - Value to set for the replyTo property.
    • setReplyToId

      public void setReplyToId(@Nullable String value)
      Sets the replyToId property value. The ID of the parent message to which this message is a reply, if applicable.
      Parameters:
      value - Value to set for the replyToId property.