java.lang.Object
com.hubspot.slack.client.models.response.assistant.AssistantThread
All Implemented Interfaces:
AssistantThreadIF

@Generated(from="AssistantThreadIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class AssistantThread extends Object implements AssistantThreadIF
Immutable implementation of AssistantThreadIF.

Use the builder to create immutable instances: AssistantThread.builder().

  • Method Details

    • getUserId

      public String getUserId()
      Specified by:
      getUserId in interface AssistantThreadIF
      Returns:
      The value of the userId attribute
    • getContext

      public AssistantThreadContext getContext()
      Specified by:
      getContext in interface AssistantThreadIF
      Returns:
      The value of the context attribute
    • getChannelId

      public String getChannelId()
      Specified by:
      getChannelId in interface AssistantThreadIF
      Returns:
      The value of the channelId attribute
    • getThreadTs

      public String getThreadTs()
      Specified by:
      getThreadTs in interface AssistantThreadIF
      Returns:
      The value of the threadTs attribute
    • withUserId

      public final AssistantThread withUserId(String value)
      Copy the current immutable object by setting a value for the userId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for userId
      Returns:
      A modified copy or the this object
    • withContext

      public final AssistantThread withContext(AssistantThreadContext value)
      Copy the current immutable object by setting a value for the context attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for context
      Returns:
      A modified copy or the this object
    • withChannelId

      public final AssistantThread withChannelId(String value)
      Copy the current immutable object by setting a value for the channelId attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for channelId
      Returns:
      A modified copy or the this object
    • withThreadTs

      public final AssistantThread withThreadTs(String value)
      Copy the current immutable object by setting a value for the threadTs attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for threadTs
      Returns:
      A modified copy or the this object
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of AssistantThread that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: userId, context, channelId, threadTs.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value AssistantThread with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static AssistantThread copyOf(AssistantThreadIF instance)
      Creates an immutable copy of a AssistantThreadIF value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.
      Parameters:
      instance - The instance to copy
      Returns:
      A copied immutable AssistantThread instance
    • builder

      public static AssistantThread.Builder builder()
      Creates a builder for AssistantThread.
       AssistantThread.builder()
          .setUserId(String) // required userId
          .setContext(com.hubspot.slack.client.models.response.assistant.AssistantThreadContext) // required context
          .setChannelId(String) // required channelId
          .setThreadTs(String) // required threadTs
          .build();
       
      Returns:
      A new AssistantThread builder