CreateChatThreadOptions Class
- java.
lang. Object - com.
azure. communication. chat. models. CreateChatThreadOptions
- com.
public final class CreateChatThreadOptions
The CreateChatThreadOptions model.
Constructor Summary
| Constructor | Description |
|---|---|
| CreateChatThreadOptions(String topic) |
Creates a new instance of Create |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Create |
addParticipant(ChatParticipant participant)
Adds another participant to the list of participants to create the chat thread with |
| String |
getIdempotencyToken()
Gets the idempotency |
| Map<String,String> |
getMetadata()
Gets the metadata key-value pairs associated with the chat thread. |
|
List<Chat |
getParticipants()
Gets participants to be added to the chat thread. |
|
Chat |
getRetentionPolicy()
Gets the thread retention policy. |
| String |
getTopic()
Gets the chat thread topic. |
|
Create |
setIdempotencyToken(String idempotencyToken)
Sets the idempotency |
|
Create |
setMetadata(Map<String,String> metadata)
Sets the metadata key-value pairs associated with the chat thread. |
|
Create |
setParticipants(List<ChatParticipant> participants)
Gets participants to be added to the chat thread. |
|
Create |
setRetentionPolicy(ChatRetentionPolicy retentionPolicy)
Sets the thread retention policy. |
Methods inherited from java.lang.Object
Constructor Details
CreateChatThreadOptions
public CreateChatThreadOptions(String topic)
Creates a new instance of CreateChatThreadOptions.
Parameters:
Method Details
addParticipant
public CreateChatThreadOptions addParticipant(ChatParticipant participant)
Adds another participant to the list of participants to create the chat thread with
Parameters:
Returns:
getIdempotencyToken
public String getIdempotencyToken()
Gets the idempotencyToken property
Returns:
getMetadata
public Map<String,String> getMetadata()
Gets the metadata key-value pairs associated with the chat thread.
Returns:
getParticipants
public List<ChatParticipant> getParticipants()
Gets participants to be added to the chat thread.
Returns:
getRetentionPolicy
public ChatRetentionPolicy getRetentionPolicy()
Gets the thread retention policy.
Returns:
getTopic
public String getTopic()
Gets the chat thread topic.
Returns:
setIdempotencyToken
public CreateChatThreadOptions setIdempotencyToken(String idempotencyToken)
Sets 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:
Returns:
setMetadata
public CreateChatThreadOptions setMetadata(Map<String,String> metadata)
Sets the metadata key-value pairs associated with the chat thread.
Parameters:
Returns:
setParticipants
public CreateChatThreadOptions setParticipants(List<ChatParticipant> participants)
Gets participants to be added to the chat thread.
Parameters:
Returns:
setRetentionPolicy
public CreateChatThreadOptions setRetentionPolicy(ChatRetentionPolicy retentionPolicy)
Sets the thread retention policy.
Parameters:
Returns: