Class ChatThreadProperties

java.lang.Object
com.azure.communication.chat.models.ChatThreadProperties

public final class ChatThreadProperties extends Object
The ChatThread model.
  • Constructor Details

    • ChatThreadProperties

      public ChatThreadProperties()
  • Method Details

    • getId

      public String getId()
      Get the id property: Chat thread id.
      Returns:
      the id value.
    • setId

      public ChatThreadProperties setId(String id)
      Set the id property: Chat thread id.
      Parameters:
      id - the id value to set.
      Returns:
      the ChatThreadProperties object itself.
    • getTopic

      public String getTopic()
      Get the topic property: Chat thread topic.
      Returns:
      the topic value.
    • setTopic

      public ChatThreadProperties setTopic(String topic)
      Set the topic property: Chat thread topic.
      Parameters:
      topic - the topic value to set.
      Returns:
      the ChatThreadProperties object itself.
    • getCreatedOn

      public OffsetDateTime getCreatedOn()
      Get the createdOn property: The timestamp when the chat thread was created. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.
      Returns:
      the createdOn value.
    • setCreatedOn

      public ChatThreadProperties setCreatedOn(OffsetDateTime createdOn)
      Set the createdOn property: The timestamp when the chat thread was created. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`.
      Parameters:
      createdOn - the createdOn value to set.
      Returns:
      the ChatThreadProperties object itself.
    • getCreatedBy

      public CommunicationIdentifier getCreatedBy()
      Get the createdBy property: Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set.
      Returns:
      the createdBy value.
    • setCreatedBy

      public ChatThreadProperties setCreatedBy(CommunicationIdentifier createdBy)
      Set the createdBy property: Identifies a participant in Azure Communication services. A participant is, for example, a phone number or an Azure communication user. This model must be interpreted as a union: Apart from rawId, at most one further property may be set.
      Parameters:
      createdBy - the createdBy value to set.
      Returns:
      the ChatThreadProperties object itself.