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 Details

    • AcsChatMessageEventBaseProperties

      public AcsChatMessageEventBaseProperties()
  • Method Details

    • 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

      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 class AcsChatEventBaseProperties
      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 class AcsChatEventBaseProperties
      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 class AcsChatEventBaseProperties
      Parameters:
      threadId - the threadId value to set.
      Returns:
      the AcsChatEventBaseProperties object itself.