Class CreateChatThreadOptions

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

public final class CreateChatThreadOptions extends Object
The CreateChatThreadOptions model.
  • Constructor Details

    • CreateChatThreadOptions

      public CreateChatThreadOptions(String topic)
      Creates a new instance of CreateChatThreadOptions
      Parameters:
      topic - the topic value to set.
  • Method Details

    • getTopic

      public String getTopic()
      Get the topic property: The chat thread topic.
      Returns:
      the topic value.
    • getParticipants

      public List<ChatParticipant> getParticipants()
      Get the participants property: Participants to be added to the chat thread.
      Returns:
      the participants value.
    • setParticipants

      public CreateChatThreadOptions setParticipants(List<ChatParticipant> participants)
      Set the participants property: Participants to be added to the chat thread.
      Parameters:
      participants - the participants value to set.
      Returns:
      the CreateChatThreadOptions object itself.
    • addParticipant

      public CreateChatThreadOptions addParticipant(ChatParticipant participant)
      Adds another participant to the list of participants to create the chat thread with
      Parameters:
      participant - The participant to add
      Returns:
      the CreateChatThreadOptions object itself
    • getIdempotencyToken

      public String getIdempotencyToken()
      Get the idempotencyToken property
      Returns:
      the idempotencyToken.
    • setIdempotencyToken

      public CreateChatThreadOptions setIdempotencyToken(String idempotencyToken)
      Set the idempotencyToken property: If specified, the client directs that the request is repeatable; that is, that the client can make the request multiple times with the same idempotencyToken and get back an appropriate response without the server executing the request multiple times. The value of the idempotencyToken is an opaque string representing a client-generated, globally unique for all time, identifier for the request. It is recommended to use version 4 (random) UUIDs.
      Parameters:
      idempotencyToken - the idempotencyToken.
      Returns:
      the CreateChatThreadOptions object itself.