Class ChatAppendStreamParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.stream.ChatAppendStreamParams.Builder
- Enclosing class:
ChatAppendStreamParams
@Generated(from="ChatAppendStreamParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class ChatAppendStreamParams.Builder
extends Object
Builds instances of type
ChatAppendStreamParams.
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 newChatAppendStreamParams.from(ChatAppendStreamParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.stream.ChatAppendStreamParamsIFinstance.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.setMarkdownText(String markdownText) Initializes the optional valuemarkdownTextto markdownText.setMarkdownText(Optional<String> markdownText) Initializes the optional valuemarkdownTextto markdownText.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.ChatAppendStreamParamsIFinstance.- 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
-
build
Builds a newChatAppendStreamParams.- Returns:
- An immutable instance of ChatAppendStreamParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-