ChatThreadMember.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;
/** The ChatThreadMember model. */
@Fluent
public final class ChatThreadMember {
/*
* The id of the chat thread member in the format
* `8:acs:ResourceId_AcsUserId`.
*/
@JsonProperty(value = "id", required = true)
private String id;
/*
* Display name for the chat thread member.
*/
@JsonProperty(value = "displayName")
private String displayName;
/*
* Time from which the chat history is shared with the member. The
* timestamp is in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.
*/
@JsonProperty(value = "shareHistoryTime")
private OffsetDateTime shareHistoryTime;
/**
* Get the id property: The id of the chat thread member in the format `8:acs:ResourceId_AcsUserId`.
*
* @return the id value.
*/
public String getId() {
return this.id;
}
/**
* Set the id property: The id of the chat thread member in the format `8:acs:ResourceId_AcsUserId`.
*
* @param id the id value to set.
* @return the ChatThreadMember object itself.
*/
public ChatThreadMember setId(String id) {
this.id = id;
return this;
}
/**
* Get the displayName property: Display name for the chat thread member.
*
* @return the displayName value.
*/
public String getDisplayName() {
return this.displayName;
}
/**
* Set the displayName property: Display name for the chat thread member.
*
* @param displayName the displayName value to set.
* @return the ChatThreadMember object itself.
*/
public ChatThreadMember setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
/**
* Get the shareHistoryTime property: Time from which the chat history is shared with the member. The timestamp is
* in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.
*
* @return the shareHistoryTime value.
*/
public OffsetDateTime getShareHistoryTime() {
return this.shareHistoryTime;
}
/**
* Set the shareHistoryTime property: Time from which the chat history is shared with the member. The timestamp is
* in ISO8601 format: `yyyy-MM-ddTHH:mm:ssZ`.
*
* @param shareHistoryTime the shareHistoryTime value to set.
* @return the ChatThreadMember object itself.
*/
public ChatThreadMember setShareHistoryTime(OffsetDateTime shareHistoryTime) {
this.shareHistoryTime = shareHistoryTime;
return this;
}
}