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 Summary
Modifier and TypeMethodDescriptionaddAllChunks(Iterable<? extends StreamChunk> elements) Adds elements tochunkslist.addChunks(StreamChunk element) Adds one element tochunkslist.addChunks(StreamChunk... elements) Adds elements tochunkslist.build()Builds a newChatStartStreamParams.from(ChatStartStreamParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.stream.ChatStartStreamParamsIFinstance.from(StreamParams instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.stream.StreamParamsinstance.setChannel(String channel) Initializes the value for thechannelattribute.setChunks(Iterable<? extends StreamChunk> elements) Sets or replaces all elements forchunkslist.setIconEmoji(String iconEmoji) Initializes the optional valueiconEmojito iconEmoji.setIconEmoji(Optional<String> iconEmoji) Initializes the optional valueiconEmojito iconEmoji.setIconUrl(String iconUrl) Initializes the optional valueiconUrlto iconUrl.setIconUrl(Optional<String> iconUrl) Initializes the optional valueiconUrlto iconUrl.setMarkdownText(String markdownText) Initializes the optional valuemarkdownTextto markdownText.setMarkdownText(Optional<String> markdownText) Initializes the optional valuemarkdownTextto markdownText.setRecipientTeamId(String recipientTeamId) Initializes the optional valuerecipientTeamIdto recipientTeamId.setRecipientTeamId(Optional<String> recipientTeamId) Initializes the optional valuerecipientTeamIdto recipientTeamId.setRecipientUserId(String recipientUserId) Initializes the optional valuerecipientUserIdto recipientUserId.setRecipientUserId(Optional<String> recipientUserId) Initializes the optional valuerecipientUserIdto recipientUserId.setTaskDisplayMode(String taskDisplayMode) Initializes the optional valuetaskDisplayModeto taskDisplayMode.setTaskDisplayMode(Optional<String> taskDisplayMode) Initializes the optional valuetaskDisplayModeto taskDisplayMode.setThreadTs(String threadTs) Initializes the value for thethreadTsattribute.setUsername(String username) Initializes the optional valueusernameto username.setUsername(Optional<String> username) Initializes the optional valueusernameto username.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.stream.StreamParamsinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.stream.ChatStartStreamParamsIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setChannel
Initializes the value for thechannelattribute.- Parameters:
channel- The value for channel- Returns:
thisbuilder for use in a chained invocation
-
setMarkdownText
Initializes the optional valuemarkdownTextto markdownText.- Parameters:
markdownText- The value for markdownText,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setMarkdownText
Initializes the optional valuemarkdownTextto markdownText.- Parameters:
markdownText- The value for markdownText- Returns:
thisbuilder for use in a chained invocation
-
addChunks
Adds one element tochunkslist.- Parameters:
element- A chunks element- Returns:
thisbuilder for use in a chained invocation
-
addChunks
Adds elements tochunkslist.- Parameters:
elements- An array of chunks elements- Returns:
thisbuilder for use in a chained invocation
-
setChunks
Sets or replaces all elements forchunkslist.- Parameters:
elements- An iterable of chunks elements- Returns:
thisbuilder for use in a chained invocation
-
addAllChunks
Adds elements tochunkslist.- Parameters:
elements- An iterable of chunks elements- Returns:
thisbuilder for use in a chained invocation
-
setThreadTs
Initializes the value for thethreadTsattribute.- Parameters:
threadTs- The value for threadTs- Returns:
thisbuilder for use in a chained invocation
-
setRecipientUserId
Initializes the optional valuerecipientUserIdto recipientUserId.- Parameters:
recipientUserId- The value for recipientUserId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setRecipientUserId
Initializes the optional valuerecipientUserIdto recipientUserId.- Parameters:
recipientUserId- The value for recipientUserId- Returns:
thisbuilder for use in a chained invocation
-
setRecipientTeamId
Initializes the optional valuerecipientTeamIdto recipientTeamId.- Parameters:
recipientTeamId- The value for recipientTeamId,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setRecipientTeamId
Initializes the optional valuerecipientTeamIdto recipientTeamId.- Parameters:
recipientTeamId- The value for recipientTeamId- Returns:
thisbuilder for use in a chained invocation
-
setTaskDisplayMode
Initializes the optional valuetaskDisplayModeto taskDisplayMode.- Parameters:
taskDisplayMode- The value for taskDisplayMode,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setTaskDisplayMode
Initializes the optional valuetaskDisplayModeto taskDisplayMode.- Parameters:
taskDisplayMode- The value for taskDisplayMode- Returns:
thisbuilder for use in a chained invocation
-
setIconEmoji
Initializes the optional valueiconEmojito iconEmoji.- Parameters:
iconEmoji- The value for iconEmoji,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setIconEmoji
Initializes the optional valueiconEmojito iconEmoji.- Parameters:
iconEmoji- The value for iconEmoji- Returns:
thisbuilder for use in a chained invocation
-
setIconUrl
Initializes the optional valueiconUrlto iconUrl.- Parameters:
iconUrl- The value for iconUrl,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setIconUrl
Initializes the optional valueiconUrlto iconUrl.- Parameters:
iconUrl- The value for iconUrl- Returns:
thisbuilder for use in a chained invocation
-
setUsername
Initializes the optional valueusernameto username.- Parameters:
username- The value for username,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUsername
Initializes the optional valueusernameto username.- Parameters:
username- The value for username- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newChatStartStreamParams.- Returns:
- An immutable instance of ChatStartStreamParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-