Class SetThreadStatusParams

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

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

Use the builder to create immutable instances: SetThreadStatusParams.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 SetThreadStatusParamsIF
      Returns:
      The computed-at-construction value of the channel attribute
    • getStatus

      public String getStatus()
      Specified by:
      getStatus in interface SetThreadStatusParamsIF
      Returns:
      The value of the status attribute
    • getThreadTs

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

      public List<String> getLoadingMessages()
      Specified by:
      getLoadingMessages in interface SetThreadStatusParamsIF
      Returns:
      The value of the loadingMessages attribute
    • getIconEmoji

      public Optional<String> getIconEmoji()
      Specified by:
      getIconEmoji in interface SetThreadStatusParamsIF
      Returns:
      The value of the iconEmoji attribute
    • getIconUrl

      public Optional<String> getIconUrl()
      Specified by:
      getIconUrl in interface SetThreadStatusParamsIF
      Returns:
      The value of the iconUrl attribute
    • getUsername

      public Optional<String> getUsername()
      Specified by:
      getUsername in interface SetThreadStatusParamsIF
      Returns:
      The value of the username attribute
    • withChannelId

      public final SetThreadStatusParams 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
    • withStatus

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

      public final SetThreadStatusParams 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
    • withLoadingMessages

      public final SetThreadStatusParams withLoadingMessages(String... elements)
      Copy the current immutable object with elements that replace the content of loadingMessages.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withLoadingMessages

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

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

      public final SetThreadStatusParams withIconEmoji(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the iconEmoji 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 iconEmoji
      Returns:
      A modified copy or this if not changed
    • withIconUrl

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

      public final SetThreadStatusParams withIconUrl(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the iconUrl 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 iconUrl
      Returns:
      A modified copy or this if not changed
    • withUsername

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

      public final SetThreadStatusParams withUsername(Optional<String> optional)
      Copy the current immutable object by setting an optional value for the username 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 username
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of SetThreadStatusParams 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, status, threadTs, loadingMessages, iconEmoji, iconUrl, username.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

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

      public static SetThreadStatusParams.Builder builder()
      Creates a builder for SetThreadStatusParams.
       SetThreadStatusParams.builder()
          .setChannelId(String) // required channelId
          .setStatus(String) // required status
          .setThreadTs(String) // required threadTs
          .addLoadingMessages|addAllLoadingMessages(String) // loadingMessages elements
          .setIconEmoji(Optional<String>) // optional iconEmoji
          .setIconUrl(Optional<String>) // optional iconUrl
          .setUsername(Optional<String>) // optional username
          .build();
       
      Returns:
      A new SetThreadStatusParams builder