ChatThread.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.implementation.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.time.OffsetDateTime;
import java.util.List;
/** The ChatThread model. */
@Fluent
public final class ChatThread {
/*
* Chat thread id.
*/
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;
/*
* Chat thread topic.
*/
@JsonProperty(value = "topic")
private String topic;
/*
* The timestamp when the chat thread was created. The timestamp is in
* ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.
*/
@JsonProperty(value = "createdOn", access = JsonProperty.Access.WRITE_ONLY)
private OffsetDateTime createdOn;
/*
* Id of the chat thread owner.
*/
@JsonProperty(value = "createdBy", access = JsonProperty.Access.WRITE_ONLY)
private String createdBy;
/*
* Chat thread members.
*/
@JsonProperty(value = "members")
private List<ChatThreadMember> members;
/**
* Get the id property: Chat thread id.
*
* @return the id value.
*/
public String getId() {
return this.id;
}
/**
* Get the topic property: Chat thread topic.
*
* @return the topic value.
*/
public String getTopic() {
return this.topic;
}
/**
* Set the topic property: Chat thread topic.
*
* @param topic the topic value to set.
* @return the ChatThread object itself.
*/
public ChatThread setTopic(String topic) {
this.topic = topic;
return this;
}
/**
* Get the createdOn property: The timestamp when the chat thread was created. The timestamp is in ISO8601 format:
* `yyyy-MM-ddTHH:mm:ssZ`.
*
* @return the createdOn value.
*/
public OffsetDateTime getCreatedOn() {
return this.createdOn;
}
/**
* Get the createdBy property: Id of the chat thread owner.
*
* @return the createdBy value.
*/
public String getCreatedBy() {
return this.createdBy;
}
/**
* Get the members property: Chat thread members.
*
* @return the members value.
*/
public List<ChatThreadMember> getMembers() {
return this.members;
}
/**
* Set the members property: Chat thread members.
*
* @param members the members value to set.
* @return the ChatThread object itself.
*/
public ChatThread setMembers(List<ChatThreadMember> members) {
this.members = members;
return this;
}
}