Class SendChatMessageOptions

java.lang.Object
com.azure.communication.chat.models.SendChatMessageOptions

public final class SendChatMessageOptions extends Object
Details of the message to send.
  • Constructor Details

    • SendChatMessageOptions

      public SendChatMessageOptions()
  • Method Details

    • getContent

      public String getContent()
      Get the content property: Chat message content.
      Returns:
      the content value.
    • setContent

      public SendChatMessageOptions setContent(String content)
      Set the content property: Chat message content.
      Parameters:
      content - the content value to set.
      Returns:
      the SendChatMessageOptions object itself.
    • getSenderDisplayName

      public String getSenderDisplayName()
      Get the senderDisplayName property: The display name of the chat message sender. This property is used to populate sender name for push notifications.
      Returns:
      the senderDisplayName value.
    • setSenderDisplayName

      public SendChatMessageOptions setSenderDisplayName(String senderDisplayName)
      Set the senderDisplayName property: The display name of the chat message sender. This property is used to populate sender name for push notifications.
      Parameters:
      senderDisplayName - the senderDisplayName value to set.
      Returns:
      the SendChatMessageOptions object itself.
    • getType

      public ChatMessageType getType()
      Get the type property: The chat message type.
      Returns:
      the type value.
    • setType

      public SendChatMessageOptions setType(ChatMessageType type)
      Set the type property: The chat message type.
      Parameters:
      type - the type value to set.
      Returns:
      the SendChatMessageOptions object itself.
    • getMetadata

      public Map<String,String> getMetadata()
      Get the metadata property: Message metadata.
      Returns:
      the metadata value.
    • setMetadata

      public SendChatMessageOptions setMetadata(Map<String,String> metadata)
      Set the metadata property: Message metadata.
      Parameters:
      metadata - the metadata value to set.
      Returns:
      the SendChatMessageOptions object itself.