@NotThreadSafe public static final class ChatPostEphemeralMessageParams.Builder extends Object
ChatPostEphemeralMessageParams.
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.
public final ChatPostEphemeralMessageParams.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 ChatPostEphemeralMessageParams.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 ChatPostEphemeralMessageParams.Builder from(ChatPostEphemeralMessageParamsIF instance)
com.hubspot.slack.client.methods.params.chat.ChatPostEphemeralMessageParamsIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.Builder setUserToSendTo(String userToSendTo)
userToSendTo attribute.userToSendTo - The value for userToSendTothis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.Builder setSendAsUser(boolean sendAsUser)
sendAsUser attribute.
If not set, this attribute will have a default value as returned by the initializer of sendAsUser.
sendAsUser - The value for sendAsUserthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.Builder setThreadTs(@Nullable String threadTs)
threadTs to threadTs.threadTs - The value for threadTs, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChatPostEphemeralMessageParams.Builder setThreadTs(Optional<String> threadTs)
threadTs to threadTs.threadTs - The value for threadTsthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.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 ChatPostEphemeralMessageParams.Builder setParseMode(String parseMode)
parseMode attribute.
If not set, this attribute will have a default value as returned by the initializer of parseMode.
parseMode - The value for parseModethis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.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 ChatPostEphemeralMessageParams.Builder setText(Optional<String> text)
text to text.text - The value for textthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.Builder addAttachments(Attachment element)
attachments list.element - A attachments elementthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.Builder addAttachments(Attachment... elements)
attachments list.elements - An array of attachments elementsthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.Builder setAttachments(Iterable<? extends Attachment> elements)
attachments list.elements - An iterable of attachments elementsthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.Builder addAllAttachments(Iterable<? extends Attachment> elements)
attachments list.elements - An iterable of attachments elementsthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.Builder addBlocks(Block element)
blocks list.element - A blocks elementthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.Builder addBlocks(Block... elements)
blocks list.elements - An array of blocks elementsthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.Builder setBlocks(Iterable<? extends Block> elements)
blocks list.elements - An iterable of blocks elementsthis builder for use in a chained invocationpublic final ChatPostEphemeralMessageParams.Builder addAllBlocks(Iterable<? extends Block> elements)
blocks list.elements - An iterable of blocks elementsthis builder for use in a chained invocationpublic ChatPostEphemeralMessageParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChatPostEphemeralMessageParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.