CreateChatThreadOptions.java
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.communication.chat.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/** The CreateChatThreadOptions model. */
@Fluent
public final class CreateChatThreadOptions {
/*
* The chat thread topic.
*/
@JsonProperty(value = "topic", required = true)
private String topic;
/*
* Members to be added to the chat thread.
*/
@JsonProperty(value = "members", required = true)
private List<ChatThreadMember> members;
/**
* Get the topic property: The chat thread topic.
*
* @return the topic value.
*/
public String getTopic() {
return this.topic;
}
/**
* Set the topic property: The chat thread topic.
*
* @param topic the topic value to set.
* @return the CreateChatThreadOptions object itself.
*/
public CreateChatThreadOptions setTopic(String topic) {
this.topic = topic;
return this;
}
/**
* Get the members property: Members to be added to the chat thread.
*
* @return the members value.
*/
public List<ChatThreadMember> getMembers() {
return this.members;
}
/**
* Set the members property: Members to be added to the chat thread.
*
* @param members the members value to set.
* @return the CreateChatThreadOptions object itself.
*/
public CreateChatThreadOptions setMembers(List<ChatThreadMember> members) {
this.members = members;
return this;
}
}