Class ChatStartStreamParams

java.lang.Object
com.hubspot.slack.client.methods.params.stream.ChatStartStreamParams
All Implemented Interfaces:
ChatStartStreamParamsIF, StreamParams

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

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

  • Method Details

    • getChannel

      public String getChannel()
      Specified by:
      getChannel in interface StreamParams
      Returns:
      The value of the channel attribute
    • getMarkdownText

      public Optional<String> getMarkdownText()
      Specified by:
      getMarkdownText in interface StreamParams
      Returns:
      The value of the markdownText attribute
    • getChunks

      public com.google.common.collect.ImmutableList<StreamChunk> getChunks()
      Specified by:
      getChunks in interface StreamParams
      Returns:
      The value of the chunks attribute
    • getThreadTs

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

      public Optional<String> getRecipientUserId()
      Specified by:
      getRecipientUserId in interface ChatStartStreamParamsIF
      Returns:
      The value of the recipientUserId attribute
    • getRecipientTeamId

      public Optional<String> getRecipientTeamId()
      Specified by:
      getRecipientTeamId in interface ChatStartStreamParamsIF
      Returns:
      The value of the recipientTeamId attribute
    • getTaskDisplayMode

      public Optional<String> getTaskDisplayMode()
      Specified by:
      getTaskDisplayMode in interface ChatStartStreamParamsIF
      Returns:
      The value of the taskDisplayMode attribute
    • getIconEmoji

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

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

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

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

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

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

      public final ChatStartStreamParams withChunks(StreamChunk... elements)
      Copy the current immutable object with elements that replace the content of chunks.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withChunks

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

      public final ChatStartStreamParams 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
    • withRecipientUserId

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

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

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

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

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

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

      public final ChatStartStreamParams 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 ChatStartStreamParams 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 ChatStartStreamParams 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 ChatStartStreamParams 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 ChatStartStreamParams 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 ChatStartStreamParams 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 ChatStartStreamParams 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: channel, markdownText, chunks, threadTs, recipientUserId, recipientTeamId, taskDisplayMode, iconEmoji, iconUrl, username.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

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

      public static ChatStartStreamParams.Builder builder()
      Creates a builder for ChatStartStreamParams.
       ChatStartStreamParams.builder()
          .setChannel(String) // required channel
          .setMarkdownText(Optional<String>) // optional markdownText
          .addChunks|addAllChunks(com.hubspot.slack.client.methods.params.stream.chunks.StreamChunk) // chunks elements
          .setThreadTs(String) // required threadTs
          .setRecipientUserId(Optional<String>) // optional recipientUserId
          .setRecipientTeamId(Optional<String>) // optional recipientTeamId
          .setTaskDisplayMode(Optional<String>) // optional taskDisplayMode
          .setIconEmoji(Optional<String>) // optional iconEmoji
          .setIconUrl(Optional<String>) // optional iconUrl
          .setUsername(Optional<String>) // optional username
          .build();
       
      Returns:
      A new ChatStartStreamParams builder