@NotThreadSafe public static final class ChatUnfurlParams.Builder extends Object
ChatUnfurlParams.
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 |
|---|---|
ChatUnfurlParams |
build()
Builds a new
ChatUnfurlParams. |
ChatUnfurlParams.Builder |
from(ChatUnfurlParamsIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.params.chat.ChatUnfurlParamsIF instance. |
ChatUnfurlParams.Builder |
from(HasChannel instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasChannel instance. |
ChatUnfurlParams.Builder |
putAllUnfurls(Map<String,? extends BlockOrAttachment> unfurls)
Put all mappings from the specified map as entries to
unfurls map. |
ChatUnfurlParams.Builder |
putUnfurls(Map.Entry<String,? extends BlockOrAttachment> entry)
Put one entry to the
unfurls map. |
ChatUnfurlParams.Builder |
putUnfurls(String key,
BlockOrAttachment value)
Put one entry to the
unfurls map. |
ChatUnfurlParams.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
ChatUnfurlParams.Builder |
setTs(String ts)
Initializes the value for the
ts attribute. |
ChatUnfurlParams.Builder |
setUnfurls(Map<String,? extends BlockOrAttachment> unfurls)
Sets or replaces all mappings from the specified map as entries for the
unfurls map. |
ChatUnfurlParams.Builder |
setUserAuthMessage(Optional<String> userAuthMessage)
Initializes the optional value
userAuthMessage to userAuthMessage. |
ChatUnfurlParams.Builder |
setUserAuthMessage(String userAuthMessage)
Initializes the optional value
userAuthMessage to userAuthMessage. |
ChatUnfurlParams.Builder |
setUserAuthRequired(Boolean userAuthRequired)
Initializes the optional value
userAuthRequired to userAuthRequired. |
ChatUnfurlParams.Builder |
setUserAuthRequired(Optional<Boolean> userAuthRequired)
Initializes the optional value
userAuthRequired to userAuthRequired. |
ChatUnfurlParams.Builder |
setUserAuthUrl(Optional<URI> userAuthUrl)
Initializes the optional value
userAuthUrl to userAuthUrl. |
ChatUnfurlParams.Builder |
setUserAuthUrl(URI userAuthUrl)
Initializes the optional value
userAuthUrl to userAuthUrl. |
public final ChatUnfurlParams.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 ChatUnfurlParams.Builder from(ChatUnfurlParamsIF instance)
com.hubspot.slack.client.methods.params.chat.ChatUnfurlParamsIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ChatUnfurlParams.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final ChatUnfurlParams.Builder setTs(String ts)
ts attribute.ts - The value for tsthis builder for use in a chained invocationpublic final ChatUnfurlParams.Builder putUnfurls(String key, BlockOrAttachment value)
unfurls map.key - The key in the unfurls mapvalue - The associated value in the unfurls mapthis builder for use in a chained invocationpublic final ChatUnfurlParams.Builder putUnfurls(Map.Entry<String,? extends BlockOrAttachment> entry)
unfurls map. Nulls are not permittedentry - The key and value entrythis builder for use in a chained invocationpublic final ChatUnfurlParams.Builder setUnfurls(Map<String,? extends BlockOrAttachment> unfurls)
unfurls map. Nulls are not permittedunfurls - The entries that will be added to the unfurls mapthis builder for use in a chained invocationpublic final ChatUnfurlParams.Builder putAllUnfurls(Map<String,? extends BlockOrAttachment> unfurls)
unfurls map. Nulls are not permittedunfurls - The entries that will be added to the unfurls mapthis builder for use in a chained invocationpublic final ChatUnfurlParams.Builder setUserAuthRequired(@Nullable Boolean userAuthRequired)
userAuthRequired to userAuthRequired.userAuthRequired - The value for userAuthRequired, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChatUnfurlParams.Builder setUserAuthRequired(Optional<Boolean> userAuthRequired)
userAuthRequired to userAuthRequired.userAuthRequired - The value for userAuthRequiredthis builder for use in a chained invocationpublic final ChatUnfurlParams.Builder setUserAuthMessage(@Nullable String userAuthMessage)
userAuthMessage to userAuthMessage.userAuthMessage - The value for userAuthMessage, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChatUnfurlParams.Builder setUserAuthMessage(Optional<String> userAuthMessage)
userAuthMessage to userAuthMessage.userAuthMessage - The value for userAuthMessagethis builder for use in a chained invocationpublic final ChatUnfurlParams.Builder setUserAuthUrl(@Nullable URI userAuthUrl)
userAuthUrl to userAuthUrl.userAuthUrl - The value for userAuthUrl, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final ChatUnfurlParams.Builder setUserAuthUrl(Optional<URI> userAuthUrl)
userAuthUrl to userAuthUrl.userAuthUrl - The value for userAuthUrlthis builder for use in a chained invocationpublic ChatUnfurlParams build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ChatUnfurlParams.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.