Class SetSuggestedPromptsParams

java.lang.Object
com.hubspot.slack.client.methods.params.assistant.SetSuggestedPromptsParams
All Implemented Interfaces:
HasChannel, SetSuggestedPromptsParamsIF

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

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

  • Method Details

    • getChannelId

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

      public String getChannel()
      Specified by:
      getChannel in interface SetSuggestedPromptsParamsIF
      Returns:
      The computed-at-construction value of the channel attribute
    • getThreadTs

      public Optional<String> getThreadTs()
      Specified by:
      getThreadTs in interface SetSuggestedPromptsParamsIF
      Returns:
      The value of the threadTs attribute
    • getTitle

      public Optional<String> getTitle()
      Specified by:
      getTitle in interface SetSuggestedPromptsParamsIF
      Returns:
      The value of the title attribute
    • getPrompts

      public List<Prompt> getPrompts()
      Specified by:
      getPrompts in interface SetSuggestedPromptsParamsIF
      Returns:
      The value of the prompts attribute
    • withChannelId

      public final SetSuggestedPromptsParams 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 SetSuggestedPromptsParams withThreadTs(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional threadTs attribute.
      Parameters:
      value - The value for threadTs, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withThreadTs

      public final SetSuggestedPromptsParams withThreadTs(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the threadTs attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for threadTs
      Returns:
      A modified copy or this if not changed
    • withTitle

      public final SetSuggestedPromptsParams withTitle(@Nullable String value)
      Copy the current immutable object by setting a present value for the optional title attribute.
      Parameters:
      value - The value for title, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withTitle

      public final SetSuggestedPromptsParams withTitle(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the title attribute. An equality check is used on inner value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for title
      Returns:
      A modified copy or this if not changed
    • withPrompts

      public final SetSuggestedPromptsParams withPrompts(Prompt... elements)
      Copy the current immutable object with elements that replace the content of prompts.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withPrompts

      public final SetSuggestedPromptsParams withPrompts(Iterable<? extends Prompt> elements)
      Copy the current immutable object with elements that replace the content of prompts. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of prompts elements to set
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of SetSuggestedPromptsParams 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: channelId, channel, threadTs, title, prompts.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static SetSuggestedPromptsParams copyOf(SetSuggestedPromptsParamsIF instance)
      Creates an immutable copy of a SetSuggestedPromptsParamsIF 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 SetSuggestedPromptsParams instance
    • builder

      public static SetSuggestedPromptsParams.Builder builder()
      Creates a builder for SetSuggestedPromptsParams.
       SetSuggestedPromptsParams.builder()
          .setChannelId(String) // required channelId
          .setThreadTs(Optional<String>) // optional threadTs
          .setTitle(Optional<String>) // optional title
          .addPrompts|addAllPrompts(Prompt) // prompts elements
          .build();
       
      Returns:
      A new SetSuggestedPromptsParams builder