Class AcsChatMessageReceivedEventData
java.lang.Object
com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties
com.azure.messaging.eventgrid.systemevents.AcsChatMessageEventBaseProperties
com.azure.messaging.eventgrid.systemevents.AcsChatMessageReceivedEventData
Schema of the Data property of an EventGridEvent for a Microsoft.Communication.ChatMessageReceived event.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet 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.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, getVersion
Methods inherited from class com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties
getRecipientCommunicationIdentifier, getThreadId, getTransactionId
-
Constructor Details
-
AcsChatMessageReceivedEventData
public AcsChatMessageReceivedEventData()
-
-
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 AcsChatMessageReceivedEventData 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 AcsChatMessageReceivedEventData object itself.
-
setMessageId
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 AcsChatMessageReceivedEventData 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
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
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
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
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 AcsChatMessageReceivedEventData 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
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
Set the threadId property: The chat thread id.- Overrides:
setThreadId
in classAcsChatMessageEventBaseProperties
- Parameters:
threadId
- the threadId value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-