Class AssistantThread.Builder

java.lang.Object
com.hubspot.slack.client.models.response.assistant.AssistantThread.Builder
Enclosing class:
AssistantThread

@Generated(from="AssistantThreadIF", generator="Immutables") @NotThreadSafe public static final class AssistantThread.Builder extends Object
Builds instances of type AssistantThread. Initialize attributes and then invoke the build() method to create an immutable instance.

Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

  • Method Details

    • from

      public final AssistantThread.Builder from(AssistantThreadIF instance)
      Fill a builder with attribute values from the provided AssistantThreadIF instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setUserId

      public final AssistantThread.Builder setUserId(String userId)
      Initializes the value for the userId attribute.
      Parameters:
      userId - The value for userId
      Returns:
      this builder for use in a chained invocation
    • setContext

      public final AssistantThread.Builder setContext(AssistantThreadContext context)
      Initializes the value for the context attribute.
      Parameters:
      context - The value for context
      Returns:
      this builder for use in a chained invocation
    • setChannelId

      public final AssistantThread.Builder setChannelId(String channelId)
      Initializes the value for the channelId attribute.
      Parameters:
      channelId - The value for channelId
      Returns:
      this builder for use in a chained invocation
    • setThreadTs

      public final AssistantThread.Builder setThreadTs(String threadTs)
      Initializes the value for the threadTs attribute.
      Parameters:
      threadTs - The value for threadTs
      Returns:
      this builder for use in a chained invocation
    • build

      public AssistantThread build()
      Builds a new AssistantThread.
      Returns:
      An immutable instance of AssistantThread
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing