Class CreateChatThreadOptions
java.lang.Object
com.azure.communication.chat.models.CreateChatThreadOptions
The CreateChatThreadOptions model.
-
Constructor Summary
ConstructorDescriptionCreateChatThreadOptions
(String topic) Creates a new instance of CreateChatThreadOptions -
Method Summary
Modifier and TypeMethodDescriptionaddParticipant
(ChatParticipant participant) Adds another participant to the list of participants to create the chat thread withGet the idempotencyToken propertyGet the participants property: Participants to be added to the chat thread.getTopic()
Get the topic property: The chat thread topic.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.setParticipants
(List<ChatParticipant> participants) Set the participants property: Participants to be added to the chat thread.
-
Constructor Details
-
CreateChatThreadOptions
Creates a new instance of CreateChatThreadOptions- Parameters:
topic
- the topic value to set.
-
-
Method Details
-
getTopic
Get the topic property: The chat thread topic.- Returns:
- the topic value.
-
getParticipants
Get the participants property: Participants to be added to the chat thread.- Returns:
- the participants value.
-
setParticipants
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
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
Get the idempotencyToken property- Returns:
- the idempotencyToken.
-
setIdempotencyToken
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.
-