Class ChatUnfurlParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatUnfurlParams.Builder
- Enclosing class:
ChatUnfurlParams
@Generated(from="ChatUnfurlParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class ChatUnfurlParams.Builder
extends Object
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newChatUnfurlParams.final ChatUnfurlParams.Builderfrom(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.final ChatUnfurlParams.Builderfrom(ChatUnfurlParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.ChatUnfurlParamsIFinstance.final ChatUnfurlParams.BuilderputAllUnfurls(Map<String, ? extends ChatUnfurlBlocksOrAttachment> entries) Put all mappings from the specified map as entries tounfurlsmap.final ChatUnfurlParams.BuilderputUnfurls(String key, ChatUnfurlBlocksOrAttachment value) Put one entry to theunfurlsmap.final ChatUnfurlParams.BuilderputUnfurls(Map.Entry<String, ? extends ChatUnfurlBlocksOrAttachment> entry) Put one entry to theunfurlsmap.final ChatUnfurlParams.BuildersetChannelId(String channelId) Initializes the value for thechannelIdattribute.final ChatUnfurlParams.BuildersetIsUserAuthRequired(Boolean isUserAuthRequired) Initializes the optional valueisUserAuthRequiredto isUserAuthRequired.final ChatUnfurlParams.BuildersetIsUserAuthRequired(Optional<Boolean> isUserAuthRequired) Initializes the optional valueisUserAuthRequiredto isUserAuthRequired.final ChatUnfurlParams.BuildersetMetadata(Metadata metadata) Initializes the optional valuemetadatato metadata.final ChatUnfurlParams.BuildersetMetadata(Optional<? extends Metadata> metadata) Initializes the optional valuemetadatato metadata.final ChatUnfurlParams.BuilderInitializes the value for thetsattribute.final ChatUnfurlParams.BuildersetUnfurls(Map<String, ? extends ChatUnfurlBlocksOrAttachment> entries) Sets or replaces all mappings from the specified map as entries for theunfurlsmap.final ChatUnfurlParams.BuildersetUserAuthMessage(String userAuthMessage) Initializes the optional valueuserAuthMessageto userAuthMessage.final ChatUnfurlParams.BuildersetUserAuthMessage(Optional<String> userAuthMessage) Initializes the optional valueuserAuthMessageto userAuthMessage.final ChatUnfurlParams.BuildersetUserAuthUrl(URI userAuthUrl) Initializes the optional valueuserAuthUrlto userAuthUrl.final ChatUnfurlParams.BuildersetUserAuthUrl(Optional<? extends URI> userAuthUrl) Initializes the optional valueuserAuthUrlto userAuthUrl.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.- 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.chat.ChatUnfurlParamsIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setChannelId
Initializes the value for thechannelIdattribute.- Parameters:
channelId- The value for channelId- 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
-
putUnfurls
Put one entry to theunfurlsmap.- Parameters:
key- The key in the unfurls mapvalue- The associated value in the unfurls map- Returns:
thisbuilder for use in a chained invocation
-
putUnfurls
public final ChatUnfurlParams.Builder putUnfurls(Map.Entry<String, ? extends ChatUnfurlBlocksOrAttachment> entry) Put one entry to theunfurlsmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
setUnfurls
public final ChatUnfurlParams.Builder setUnfurls(Map<String, ? extends ChatUnfurlBlocksOrAttachment> entries) Sets or replaces all mappings from the specified map as entries for theunfurlsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the unfurls map- Returns:
thisbuilder for use in a chained invocation
-
putAllUnfurls
public final ChatUnfurlParams.Builder putAllUnfurls(Map<String, ? extends ChatUnfurlBlocksOrAttachment> entries) Put all mappings from the specified map as entries tounfurlsmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the unfurls map- Returns:
thisbuilder for use in a chained invocation
-
setIsUserAuthRequired
Initializes the optional valueisUserAuthRequiredto isUserAuthRequired.- Parameters:
isUserAuthRequired- The value for isUserAuthRequired,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setIsUserAuthRequired
Initializes the optional valueisUserAuthRequiredto isUserAuthRequired.- Parameters:
isUserAuthRequired- The value for isUserAuthRequired- Returns:
thisbuilder for use in a chained invocation
-
setUserAuthMessage
Initializes the optional valueuserAuthMessageto userAuthMessage.- Parameters:
userAuthMessage- The value for userAuthMessage,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUserAuthMessage
Initializes the optional valueuserAuthMessageto userAuthMessage.- Parameters:
userAuthMessage- The value for userAuthMessage- Returns:
thisbuilder for use in a chained invocation
-
setUserAuthUrl
Initializes the optional valueuserAuthUrlto userAuthUrl.- Parameters:
userAuthUrl- The value for userAuthUrl,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUserAuthUrl
Initializes the optional valueuserAuthUrlto userAuthUrl.- Parameters:
userAuthUrl- The value for userAuthUrl- 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 newChatUnfurlParams.- Returns:
- An immutable instance of ChatUnfurlParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-