Class SetSuggestedPromptsParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.assistant.SetSuggestedPromptsParams.Builder
Enclosing class:
SetSuggestedPromptsParams

@Generated(from="SetSuggestedPromptsParamsIF", generator="Immutables") @NotThreadSafe public static final class SetSuggestedPromptsParams.Builder extends Object
Builds instances of type SetSuggestedPromptsParams. 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 SetSuggestedPromptsParams.Builder from(HasChannel instance)
      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.interceptor.HasChannel instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • from

      Fill a builder with attribute values from the provided com.hubspot.slack.client.methods.params.assistant.SetSuggestedPromptsParamsIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setChannelId

      public final SetSuggestedPromptsParams.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 SetSuggestedPromptsParams.Builder setThreadTs(@Nullable String threadTs)
      Initializes the optional value threadTs to threadTs.
      Parameters:
      threadTs - The value for threadTs, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setThreadTs

      public final SetSuggestedPromptsParams.Builder setThreadTs(Optional<String> threadTs)
      Initializes the optional value threadTs to threadTs.
      Parameters:
      threadTs - The value for threadTs
      Returns:
      this builder for use in a chained invocation
    • setTitle

      public final SetSuggestedPromptsParams.Builder setTitle(@Nullable String title)
      Initializes the optional value title to title.
      Parameters:
      title - The value for title, null is accepted as java.util.Optional.empty()
      Returns:
      this builder for chained invocation
    • setTitle

      public final SetSuggestedPromptsParams.Builder setTitle(Optional<String> title)
      Initializes the optional value title to title.
      Parameters:
      title - The value for title
      Returns:
      this builder for use in a chained invocation
    • addPrompts

      public final SetSuggestedPromptsParams.Builder addPrompts(Prompt element)
      Adds one element to prompts list.
      Parameters:
      element - A prompts element
      Returns:
      this builder for use in a chained invocation
    • addPrompts

      public final SetSuggestedPromptsParams.Builder addPrompts(Prompt... elements)
      Adds elements to prompts list.
      Parameters:
      elements - An array of prompts elements
      Returns:
      this builder for use in a chained invocation
    • setPrompts

      public final SetSuggestedPromptsParams.Builder setPrompts(Iterable<? extends Prompt> elements)
      Sets or replaces all elements for prompts list.
      Parameters:
      elements - An iterable of prompts elements
      Returns:
      this builder for use in a chained invocation
    • addAllPrompts

      public final SetSuggestedPromptsParams.Builder addAllPrompts(Iterable<? extends Prompt> elements)
      Adds elements to prompts list.
      Parameters:
      elements - An iterable of prompts elements
      Returns:
      this builder for use in a chained invocation
    • build

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