Class ChatStopStreamParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.stream.ChatStopStreamParams.Builder
- Enclosing class:
ChatStopStreamParams
@Generated(from="ChatStopStreamParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class ChatStopStreamParams.Builder
extends Object
Builds instances of type
ChatStopStreamParams.
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 TypeMethodDescriptionaddAllBlocks(Iterable<? extends Block> elements) Adds elements toblockslist.addAllChunks(Iterable<? extends StreamChunk> elements) Adds elements tochunkslist.Adds one element toblockslist.Adds elements toblockslist.addChunks(StreamChunk element) Adds one element tochunkslist.addChunks(StreamChunk... elements) Adds elements tochunkslist.build()Builds a newChatStopStreamParams.from(ChatStopStreamParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.stream.ChatStopStreamParamsIFinstance.from(StreamParams instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.stream.StreamParamsinstance.Sets or replaces all elements forblockslist.setChannel(String channel) Initializes the value for thechannelattribute.setChunks(Iterable<? extends StreamChunk> elements) Sets or replaces all elements forchunkslist.setMarkdownText(String markdownText) Initializes the optional valuemarkdownTextto markdownText.setMarkdownText(Optional<String> markdownText) Initializes the optional valuemarkdownTextto markdownText.setMetadata(StreamMetadata metadata) Initializes the optional valuemetadatato metadata.setMetadata(Optional<? extends StreamMetadata> metadata) Initializes the optional valuemetadatato metadata.Initializes the value for thetsattribute.
-
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.ChatStopStreamParamsIFinstance.- 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
-
setTs
Initializes the value for thetsattribute.- Parameters:
ts- The value for ts- Returns:
thisbuilder for use in a chained invocation
-
addBlocks
Adds one element toblockslist.- Parameters:
element- A blocks element- Returns:
thisbuilder for use in a chained invocation
-
addBlocks
Adds elements toblockslist.- Parameters:
elements- An array of blocks elements- Returns:
thisbuilder for use in a chained invocation
-
setBlocks
Sets or replaces all elements forblockslist.- Parameters:
elements- An iterable of blocks elements- Returns:
thisbuilder for use in a chained invocation
-
addAllBlocks
Adds elements toblockslist.- Parameters:
elements- An iterable of blocks elements- Returns:
thisbuilder for use in a chained invocation
-
setMetadata
Initializes the optional valuemetadatato metadata.- Parameters:
metadata- The value for metadata,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setMetadata
Initializes the optional valuemetadatato metadata.- Parameters:
metadata- The value for metadata- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newChatStopStreamParams.- Returns:
- An immutable instance of ChatStopStreamParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-