Package com.microsoft.graph.models
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.
-
Field Summary
Fields inherited from class com.microsoft.graph.models.Entity
backingStore -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a newEngagementConversationMessageand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptioncreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valuegetBody()Gets the body property value.Gets the conversation property value.Gets the createdDateTime property value.Gets the creationMode property value.The deserialization information for the current modelgetFrom()Gets the from property value.Gets the lastModifiedDateTime property value.Gets the reactions property value.Gets the replies property value.Gets the replyTo property value.Gets the replyToId property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidSets the body property value.voidSets the conversation property value.voidsetCreatedDateTime(OffsetDateTime value) Sets the createdDateTime property value.voidSets the creationMode property value.voidsetFrom(EngagementIdentitySet value) Sets the from property value.voidSets the lastModifiedDateTime property value.voidSets the reactions property value.voidSets the replies property value.voidSets the replyTo property value.voidsetReplyToId(String value) Sets the replyToId property value.Methods inherited from class com.microsoft.graph.models.Entity
getAdditionalData, getBackingStore, getId, getOdataType, setAdditionalData, setBackingStore, setId, setOdataType
-
Constructor Details
-
EngagementConversationMessage
public EngagementConversationMessage()Instantiates a newEngagementConversationMessageand 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
Gets the body property value. The body property- Returns:
- a
ItemBody
-
getConversation
Gets the conversation property value. The conversation property- Returns:
- a
EngagementConversation
-
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
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:
getFieldDeserializersin interfacecom.microsoft.kiota.serialization.Parsable- Overrides:
getFieldDeserializersin classEntity- Returns:
- a
Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
-
getFrom
Gets the from property value. Identity of the sender of the message.- Returns:
- a
EngagementIdentitySet
-
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
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
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
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
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 -
setBody
Sets the body property value. The body property- Parameters:
value- Value to set for the body property.
-
setConversation
Sets the conversation property value. The conversation property- Parameters:
value- Value to set for the conversation property.
-
setCreatedDateTime
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
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
Sets the from property value. Identity of the sender of the message.- Parameters:
value- Value to set for the from property.
-
setLastModifiedDateTime
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
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
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
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
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.
-