Class AcsChatMessageEditedEventData
- java.lang.Object
-
- com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties
-
- com.azure.messaging.eventgrid.systemevents.AcsChatMessageEventBaseProperties
-
- com.azure.messaging.eventgrid.systemevents.AcsChatMessageEditedEventData
-
public final class AcsChatMessageEditedEventData extends AcsChatMessageEventBaseProperties
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEdited event.
-
-
Constructor Summary
Constructors Constructor Description AcsChatMessageEditedEventData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
getEditTime()
Get the editTime property: The time at which the message was edited.String
getMessageBody()
Get the messageBody property: The body of the chat message.Map<String,String>
getMetadata()
Get the metadata property: The chat message metadata.AcsChatMessageEditedEventData
setComposeTime(OffsetDateTime composeTime)
Set the composeTime property: The original compose time of the message.AcsChatMessageEditedEventData
setEditTime(OffsetDateTime editTime)
Set the editTime property: The time at which the message was edited.AcsChatMessageEditedEventData
setMessageBody(String messageBody)
Set the messageBody property: The body of the chat message.AcsChatMessageEditedEventData
setMessageId(String messageId)
Set the messageId property: The chat message id.AcsChatMessageEditedEventData
setMetadata(Map<String,String> metadata)
Set the metadata property: The chat message metadata.AcsChatMessageEditedEventData
setRecipientCommunicationIdentifier(CommunicationIdentifierModel recipientCommunicationIdentifier)
Set the recipientCommunicationIdentifier property: The communication identifier of the target user.AcsChatMessageEditedEventData
setSenderCommunicationIdentifier(CommunicationIdentifierModel senderCommunicationIdentifier)
Set the senderCommunicationIdentifier property: The communication identifier of the sender.AcsChatMessageEditedEventData
setSenderDisplayName(String senderDisplayName)
Set the senderDisplayName property: The display name of the sender.AcsChatMessageEditedEventData
setThreadId(String threadId)
Set the threadId property: The chat thread id.AcsChatMessageEditedEventData
setTransactionId(String transactionId)
Set the transactionId property: The transaction id will be used as co-relation vector.AcsChatMessageEditedEventData
setType(String type)
Set the type property: The type of the message.AcsChatMessageEditedEventData
setVersion(Long version)
Set the version property: The version of the message.-
Methods inherited from class com.azure.messaging.eventgrid.systemevents.AcsChatMessageEventBaseProperties
getComposeTime, getMessageId, getSenderCommunicationIdentifier, getSenderDisplayName, getType, getVersion
-
Methods inherited from class com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties
getRecipientCommunicationIdentifier, getThreadId, getTransactionId
-
-
-
-
Method Detail
-
getMessageBody
public String getMessageBody()
Get the messageBody property: The body of the chat message.- Returns:
- the messageBody value.
-
setMessageBody
public AcsChatMessageEditedEventData setMessageBody(String messageBody)
Set the messageBody property: The body of the chat message.- Parameters:
messageBody
- the messageBody value to set.- Returns:
- the AcsChatMessageEditedEventData object itself.
-
getMetadata
public Map<String,String> getMetadata()
Get the metadata property: The chat message metadata.- Returns:
- the metadata value.
-
setMetadata
public AcsChatMessageEditedEventData setMetadata(Map<String,String> metadata)
Set the metadata property: The chat message metadata.- Parameters:
metadata
- the metadata value to set.- Returns:
- the AcsChatMessageEditedEventData object itself.
-
getEditTime
public OffsetDateTime getEditTime()
Get the editTime property: The time at which the message was edited.- Returns:
- the editTime value.
-
setEditTime
public AcsChatMessageEditedEventData setEditTime(OffsetDateTime editTime)
Set the editTime property: The time at which the message was edited.- Parameters:
editTime
- the editTime value to set.- Returns:
- the AcsChatMessageEditedEventData object itself.
-
setMessageId
public AcsChatMessageEditedEventData setMessageId(String messageId)
Set the messageId property: The chat message id.- Overrides:
setMessageId
in classAcsChatMessageEventBaseProperties
- Parameters:
messageId
- the messageId value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
setSenderCommunicationIdentifier
public AcsChatMessageEditedEventData setSenderCommunicationIdentifier(CommunicationIdentifierModel senderCommunicationIdentifier)
Set the senderCommunicationIdentifier property: The communication identifier of the sender.- Overrides:
setSenderCommunicationIdentifier
in classAcsChatMessageEventBaseProperties
- Parameters:
senderCommunicationIdentifier
- the senderCommunicationIdentifier value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
setSenderDisplayName
public AcsChatMessageEditedEventData setSenderDisplayName(String senderDisplayName)
Set the senderDisplayName property: The display name of the sender.- Overrides:
setSenderDisplayName
in classAcsChatMessageEventBaseProperties
- Parameters:
senderDisplayName
- the senderDisplayName value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
setComposeTime
public AcsChatMessageEditedEventData setComposeTime(OffsetDateTime composeTime)
Set the composeTime property: The original compose time of the message.- Overrides:
setComposeTime
in classAcsChatMessageEventBaseProperties
- Parameters:
composeTime
- the composeTime value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
setType
public AcsChatMessageEditedEventData setType(String type)
Set the type property: The type of the message.- Overrides:
setType
in classAcsChatMessageEventBaseProperties
- Parameters:
type
- the type value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
setVersion
public AcsChatMessageEditedEventData setVersion(Long version)
Set the version property: The version of the message.- Overrides:
setVersion
in classAcsChatMessageEventBaseProperties
- Parameters:
version
- the version value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
setRecipientCommunicationIdentifier
public AcsChatMessageEditedEventData setRecipientCommunicationIdentifier(CommunicationIdentifierModel recipientCommunicationIdentifier)
Set the recipientCommunicationIdentifier property: The communication identifier of the target user.- Overrides:
setRecipientCommunicationIdentifier
in classAcsChatMessageEventBaseProperties
- Parameters:
recipientCommunicationIdentifier
- the recipientCommunicationIdentifier value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-
setTransactionId
public AcsChatMessageEditedEventData setTransactionId(String transactionId)
Set the transactionId property: The transaction id will be used as co-relation vector.- Overrides:
setTransactionId
in classAcsChatMessageEventBaseProperties
- Parameters:
transactionId
- the transactionId value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-
setThreadId
public AcsChatMessageEditedEventData setThreadId(String threadId)
Set the threadId property: The chat thread id.- Overrides:
setThreadId
in classAcsChatMessageEventBaseProperties
- Parameters:
threadId
- the threadId value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-
-