Class AcsChatMessageEventBaseProperties
- java.lang.Object
-
- com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties
-
- com.azure.messaging.eventgrid.systemevents.AcsChatMessageEventBaseProperties
-
- Direct Known Subclasses:
AcsChatMessageDeletedEventData
,AcsChatMessageEditedEventData
,AcsChatMessageReceivedEventData
public class AcsChatMessageEventBaseProperties extends AcsChatEventBaseProperties
Schema of common properties of all chat message events.
-
-
Constructor Summary
Constructors Constructor Description AcsChatMessageEventBaseProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
getComposeTime()
Get the composeTime property: The original compose time of the message.String
getMessageId()
Get the messageId property: The chat message id.CommunicationIdentifierModel
getSenderCommunicationIdentifier()
Get the senderCommunicationIdentifier property: The communication identifier of the sender.String
getSenderDisplayName()
Get the senderDisplayName property: The display name of the sender.String
getType()
Get the type property: The type of the message.Long
getVersion()
Get the version property: The version of the message.AcsChatMessageEventBaseProperties
setComposeTime(OffsetDateTime composeTime)
Set the composeTime property: The original compose time of the message.AcsChatMessageEventBaseProperties
setMessageId(String messageId)
Set the messageId property: The chat message id.AcsChatMessageEventBaseProperties
setRecipientCommunicationIdentifier(CommunicationIdentifierModel recipientCommunicationIdentifier)
Set the recipientCommunicationIdentifier property: The communication identifier of the target user.AcsChatMessageEventBaseProperties
setSenderCommunicationIdentifier(CommunicationIdentifierModel senderCommunicationIdentifier)
Set the senderCommunicationIdentifier property: The communication identifier of the sender.AcsChatMessageEventBaseProperties
setSenderDisplayName(String senderDisplayName)
Set the senderDisplayName property: The display name of the sender.AcsChatMessageEventBaseProperties
setThreadId(String threadId)
Set the threadId property: The chat thread id.AcsChatMessageEventBaseProperties
setTransactionId(String transactionId)
Set the transactionId property: The transaction id will be used as co-relation vector.AcsChatMessageEventBaseProperties
setType(String type)
Set the type property: The type of the message.AcsChatMessageEventBaseProperties
setVersion(Long version)
Set the version property: The version of the message.-
Methods inherited from class com.azure.messaging.eventgrid.systemevents.AcsChatEventBaseProperties
getRecipientCommunicationIdentifier, getThreadId, getTransactionId
-
-
-
-
Method Detail
-
getMessageId
public String getMessageId()
Get the messageId property: The chat message id.- Returns:
- the messageId value.
-
setMessageId
public AcsChatMessageEventBaseProperties setMessageId(String messageId)
Set the messageId property: The chat message id.- Parameters:
messageId
- the messageId value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
getSenderCommunicationIdentifier
public CommunicationIdentifierModel getSenderCommunicationIdentifier()
Get the senderCommunicationIdentifier property: The communication identifier of the sender.- Returns:
- the senderCommunicationIdentifier value.
-
setSenderCommunicationIdentifier
public AcsChatMessageEventBaseProperties setSenderCommunicationIdentifier(CommunicationIdentifierModel senderCommunicationIdentifier)
Set the senderCommunicationIdentifier property: The communication identifier of the sender.- Parameters:
senderCommunicationIdentifier
- the senderCommunicationIdentifier value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
getSenderDisplayName
public String getSenderDisplayName()
Get the senderDisplayName property: The display name of the sender.- Returns:
- the senderDisplayName value.
-
setSenderDisplayName
public AcsChatMessageEventBaseProperties setSenderDisplayName(String senderDisplayName)
Set the senderDisplayName property: The display name of the sender.- Parameters:
senderDisplayName
- the senderDisplayName value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
getComposeTime
public OffsetDateTime getComposeTime()
Get the composeTime property: The original compose time of the message.- Returns:
- the composeTime value.
-
setComposeTime
public AcsChatMessageEventBaseProperties setComposeTime(OffsetDateTime composeTime)
Set the composeTime property: The original compose time of the message.- Parameters:
composeTime
- the composeTime value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
getType
public String getType()
Get the type property: The type of the message.- Returns:
- the type value.
-
setType
public AcsChatMessageEventBaseProperties setType(String type)
Set the type property: The type of the message.- Parameters:
type
- the type value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
getVersion
public Long getVersion()
Get the version property: The version of the message.- Returns:
- the version value.
-
setVersion
public AcsChatMessageEventBaseProperties setVersion(Long version)
Set the version property: The version of the message.- Parameters:
version
- the version value to set.- Returns:
- the AcsChatMessageEventBaseProperties object itself.
-
setRecipientCommunicationIdentifier
public AcsChatMessageEventBaseProperties setRecipientCommunicationIdentifier(CommunicationIdentifierModel recipientCommunicationIdentifier)
Set the recipientCommunicationIdentifier property: The communication identifier of the target user.- Overrides:
setRecipientCommunicationIdentifier
in classAcsChatEventBaseProperties
- Parameters:
recipientCommunicationIdentifier
- the recipientCommunicationIdentifier value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-
setTransactionId
public AcsChatMessageEventBaseProperties setTransactionId(String transactionId)
Set the transactionId property: The transaction id will be used as co-relation vector.- Overrides:
setTransactionId
in classAcsChatEventBaseProperties
- Parameters:
transactionId
- the transactionId value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-
setThreadId
public AcsChatMessageEventBaseProperties setThreadId(String threadId)
Set the threadId property: The chat thread id.- Overrides:
setThreadId
in classAcsChatEventBaseProperties
- Parameters:
threadId
- the threadId value to set.- Returns:
- the AcsChatEventBaseProperties object itself.
-
-