Class SetThreadStatusParams.Builder

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

@Generated(from="SetThreadStatusParamsIF", generator="Immutables") @NotThreadSafe public static final class SetThreadStatusParams.Builder extends Object
Builds instances of type SetThreadStatusParams. 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 SetThreadStatusParams.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.SetThreadStatusParamsIF instance.
      Parameters:
      instance - The instance from which to copy values
      Returns:
      this builder for use in a chained invocation
    • setChannelId

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

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

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

      public final SetThreadStatusParams.Builder addLoadingMessages(String element)
      Adds one element to loadingMessages list.
      Parameters:
      element - A loadingMessages element
      Returns:
      this builder for use in a chained invocation
    • addLoadingMessages

      public final SetThreadStatusParams.Builder addLoadingMessages(String... elements)
      Adds elements to loadingMessages list.
      Parameters:
      elements - An array of loadingMessages elements
      Returns:
      this builder for use in a chained invocation
    • setLoadingMessages

      public final SetThreadStatusParams.Builder setLoadingMessages(Iterable<String> elements)
      Sets or replaces all elements for loadingMessages list.
      Parameters:
      elements - An iterable of loadingMessages elements
      Returns:
      this builder for use in a chained invocation
    • addAllLoadingMessages

      public final SetThreadStatusParams.Builder addAllLoadingMessages(Iterable<String> elements)
      Adds elements to loadingMessages list.
      Parameters:
      elements - An iterable of loadingMessages elements
      Returns:
      this builder for use in a chained invocation
    • setIconEmoji

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

      public final SetThreadStatusParams.Builder setIconEmoji(Optional<String> iconEmoji)
      Initializes the optional value iconEmoji to iconEmoji.
      Parameters:
      iconEmoji - The value for iconEmoji
      Returns:
      this builder for use in a chained invocation
    • setIconUrl

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

      public final SetThreadStatusParams.Builder setIconUrl(Optional<String> iconUrl)
      Initializes the optional value iconUrl to iconUrl.
      Parameters:
      iconUrl - The value for iconUrl
      Returns:
      this builder for use in a chained invocation
    • setUsername

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

      public final SetThreadStatusParams.Builder setUsername(Optional<String> username)
      Initializes the optional value username to username.
      Parameters:
      username - The value for username
      Returns:
      this builder for use in a chained invocation
    • build

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