Class AcsChatMessageEditedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties
com.azure.messaging.eventgrid.systemevents.AcsChatMessageEventBaseProperties
com.azure.messaging.eventgrid.systemevents.AcsChatMessageEditedEventData
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageEdited event.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of AcsChatMessageEditedEventData class. -
Method Summary
Modifier and TypeMethodDescriptionGet the editTime property: The time at which the message was edited.Get the messageBody property: The body of the chat message.Get the metadata property: The chat message metadata.setComposeTime(OffsetDateTime composeTime) Set the composeTime property: The original compose time of the message.setEditTime(OffsetDateTime editTime) Set the editTime property: The time at which the message was edited.setMessageBody(String messageBody) Set the messageBody property: The body of the chat message.setMessageId(String messageId) Set the messageId property: The chat message id.setMetadata(Map<String, String> metadata) Set the metadata property: The chat message metadata.setRecipientCommunicationIdentifier(CommunicationIdentifierModel recipientCommunicationIdentifier) Set the recipientCommunicationIdentifier property: The communication identifier of the target user.setSenderCommunicationIdentifier(CommunicationIdentifierModel senderCommunicationIdentifier) Set the senderCommunicationIdentifier property: The communication identifier of the sender.setSenderDisplayName(String senderDisplayName) Set the senderDisplayName property: The display name of the sender.setThreadId(String threadId) Set the threadId property: The chat thread id.setTransactionId(String transactionId) Set the transactionId property: The transaction id will be used as co-relation vector.Set the type property: The type of the message.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, getVersionMethods inherited from class com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties
getRecipientCommunicationIdentifier, getThreadId, getTransactionId
-
Constructor Details
-
AcsChatMessageEditedEventData
public AcsChatMessageEditedEventData()Creates an instance of AcsChatMessageEditedEventData class.
-
-
Method Details
-
getMessageBody
Get the messageBody property: The body of the chat message.- Returns:
- the messageBody value.
-
setMessageBody
Set the messageBody property: The body of the chat message.- Parameters:
messageBody- the messageBody value to set.- Returns:
- the AcsChatMessageEditedEventData object itself.
-
getMetadata
Get the metadata property: The chat message metadata.- Returns:
- the metadata value.
-
setMetadata
Set the metadata property: The chat message metadata.- Parameters:
metadata- the metadata value to set.- Returns:
- the AcsChatMessageEditedEventData object itself.
-
getEditTime
Get the editTime property: The time at which the message was edited.- Returns:
- the editTime value.
-
setEditTime
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
Set the messageId property: The chat message id.- Overrides:
setMessageIdin 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:
setSenderCommunicationIdentifierin classAcsChatMessageEventBaseProperties- Parameters:
senderCommunicationIdentifier- the senderCommunicationIdentifier value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
setSenderDisplayName
Set the senderDisplayName property: The display name of the sender.- Overrides:
setSenderDisplayNamein classAcsChatMessageEventBaseProperties- Parameters:
senderDisplayName- the senderDisplayName value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
setComposeTime
Set the composeTime property: The original compose time of the message.- Overrides:
setComposeTimein classAcsChatMessageEventBaseProperties- Parameters:
composeTime- the composeTime value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
setType
Set the type property: The type of the message.- Overrides:
setTypein classAcsChatMessageEventBaseProperties- Parameters:
type- the type value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
setVersion
Set the version property: The version of the message.- Overrides:
setVersionin 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:
setRecipientCommunicationIdentifierin classAcsChatMessageEventBaseProperties- Parameters:
recipientCommunicationIdentifier- the recipientCommunicationIdentifier value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-
setTransactionId
Set the transactionId property: The transaction id will be used as co-relation vector.- Overrides:
setTransactionIdin classAcsChatMessageEventBaseProperties- Parameters:
transactionId- the transactionId value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-
setThreadId
Set the threadId property: The chat thread id.- Overrides:
setThreadIdin classAcsChatMessageEventBaseProperties- Parameters:
threadId- the threadId value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-