@NotThreadSafe public static final class ChatUpdateMessageParams.Builder extends Object
ChatUpdateMessageParams.
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.
| Modifier and Type | Method and Description |
|---|---|
ChatUpdateMessageParams.Builder |
addAllAttachments(Iterable<? extends Attachment> elements)
Adds elements to
attachments list. |
ChatUpdateMessageParams.Builder |
addAllBlocks(Iterable<? extends Block> elements)
Adds elements to
blocks list. |
ChatUpdateMessageParams.Builder |
addAttachments(Attachment... elements)
Adds elements to
attachments list. |
ChatUpdateMessageParams.Builder |
addAttachments(Attachment element)
Adds one element to
attachments list. |
ChatUpdateMessageParams.Builder |
addBlocks(Block... elements)
Adds elements to
blocks list. |
ChatUpdateMessageParams.Builder |
addBlocks(Block element)
Adds one element to
blocks list. |
ChatUpdateMessageParams |
build()
Builds a new
ChatUpdateMessageParams. |
ChatUpdateMessageParams.Builder |
from(ChatUpdateMessageParamsIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.params.chat.ChatUpdateMessageParamsIF instance. |
ChatUpdateMessageParams.Builder |
from(HasChannel instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasChannel instance. |
ChatUpdateMessageParams.Builder |
from(MessageParams instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.params.chat.MessageParams instance. |
ChatUpdateMessageParams.Builder |
setAsUser(Boolean asUser)
Initializes the optional value
asUser to asUser. |
ChatUpdateMessageParams.Builder |
setAsUser(Optional<Boolean> asUser)
Initializes the optional value
asUser to asUser. |
ChatUpdateMessageParams.Builder |
setAttachments(Iterable<? extends Attachment> elements)
Sets or replaces all elements for
attachments list. |
ChatUpdateMessageParams.Builder |
setBlocks(Iterable<? extends Block> elements)
Sets or replaces all elements for
blocks list. |
ChatUpdateMessageParams.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
ChatUpdateMessageParams.Builder |
setParse(String parse)
Initializes the value for the
parse attribute. |
ChatUpdateMessageParams.Builder |
setShouldLinkNames(boolean shouldLinkNames)
Initializes the value for the
shouldLinkNames attribute. |
ChatUpdateMessageParams.Builder |
setText(Optional<String> text)
Initializes the optional value
text to text. |
ChatUpdateMessageParams.Builder |
setText(String text)
Initializes the optional value
text to text. |
ChatUpdateMessageParams.Builder |
setTs(String ts)
Initializes the value for the
ts attribute. |
public final ChatUpdateMessageParams.Builder from(MessageParams instance)
com.hubspot.slack.client.methods.params.chat.MessageParams instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder from(HasChannel instance)
com.hubspot.slack.client.methods.interceptor.HasChannel instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder from(ChatUpdateMessageParamsIF instance)
com.hubspot.slack.client.methods.params.chat.ChatUpdateMessageParamsIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder setText(@Nullable String text)
text to text.text - The value for text, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChatUpdateMessageParams.Builder setText(Optional<String> text)
text to text.text - The value for textthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder setTs(String ts)
ts attribute.ts - The value for tsthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder setAsUser(@Nullable Boolean asUser)
asUser to asUser.asUser - The value for asUser, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChatUpdateMessageParams.Builder setAsUser(Optional<Boolean> asUser)
asUser to asUser.asUser - The value for asUserthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder setShouldLinkNames(boolean shouldLinkNames)
shouldLinkNames attribute.
If not set, this attribute will have a default value as returned by the initializer of shouldLinkNames.
shouldLinkNames - The value for shouldLinkNamesthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder setParse(String parse)
parse attribute.
If not set, this attribute will have a default value as returned by the initializer of parse.
parse - The value for parsethis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder addAttachments(Attachment element)
attachments list.element - A attachments elementthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder addAttachments(Attachment... elements)
attachments list.elements - An array of attachments elementsthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder setAttachments(Iterable<? extends Attachment> elements)
attachments list.elements - An iterable of attachments elementsthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder addAllAttachments(Iterable<? extends Attachment> elements)
attachments list.elements - An iterable of attachments elementsthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder addBlocks(Block element)
blocks list.element - A blocks elementthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder addBlocks(Block... elements)
blocks list.elements - An array of blocks elementsthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder setBlocks(Iterable<? extends Block> elements)
blocks list.elements - An iterable of blocks elementsthis builder for use in a chained invocationpublic final ChatUpdateMessageParams.Builder addAllBlocks(Iterable<? extends Block> elements)
blocks list.elements - An iterable of blocks elementsthis builder for use in a chained invocationpublic ChatUpdateMessageParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChatUpdateMessageParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.