Class ChatStartStreamParams.Builder

java.lang.Object
com.hubspot.slack.client.methods.params.stream.ChatStartStreamParams.Builder
Enclosing class:
ChatStartStreamParams

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

      public final ChatStartStreamParams.Builder setChannel(String channel)
      Initializes the value for the channel attribute.
      Parameters:
      channel - The value for channel
      Returns:
      this builder for use in a chained invocation
    • setMarkdownText

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

      public final ChatStartStreamParams.Builder setMarkdownText(Optional<String> markdownText)
      Initializes the optional value markdownText to markdownText.
      Parameters:
      markdownText - The value for markdownText
      Returns:
      this builder for use in a chained invocation
    • addChunks

      public final ChatStartStreamParams.Builder addChunks(StreamChunk element)
      Adds one element to chunks list.
      Parameters:
      element - A chunks element
      Returns:
      this builder for use in a chained invocation
    • addChunks

      public final ChatStartStreamParams.Builder addChunks(StreamChunk... elements)
      Adds elements to chunks list.
      Parameters:
      elements - An array of chunks elements
      Returns:
      this builder for use in a chained invocation
    • setChunks

      public final ChatStartStreamParams.Builder setChunks(Iterable<? extends StreamChunk> elements)
      Sets or replaces all elements for chunks list.
      Parameters:
      elements - An iterable of chunks elements
      Returns:
      this builder for use in a chained invocation
    • addAllChunks

      public final ChatStartStreamParams.Builder addAllChunks(Iterable<? extends StreamChunk> elements)
      Adds elements to chunks list.
      Parameters:
      elements - An iterable of chunks elements
      Returns:
      this builder for use in a chained invocation
    • setThreadTs

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

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

      public final ChatStartStreamParams.Builder setRecipientUserId(Optional<String> recipientUserId)
      Initializes the optional value recipientUserId to recipientUserId.
      Parameters:
      recipientUserId - The value for recipientUserId
      Returns:
      this builder for use in a chained invocation
    • setRecipientTeamId

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

      public final ChatStartStreamParams.Builder setRecipientTeamId(Optional<String> recipientTeamId)
      Initializes the optional value recipientTeamId to recipientTeamId.
      Parameters:
      recipientTeamId - The value for recipientTeamId
      Returns:
      this builder for use in a chained invocation
    • setTaskDisplayMode

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

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

      public final ChatStartStreamParams.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 ChatStartStreamParams.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 ChatStartStreamParams.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 ChatStartStreamParams.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 ChatStartStreamParams.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 ChatStartStreamParams.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 ChatStartStreamParams build()
      Builds a new ChatStartStreamParams.
      Returns:
      An immutable instance of ChatStartStreamParams
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing