Class ChatScheduleMessageParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatScheduleMessageParams.Builder
- Enclosing class:
ChatScheduleMessageParams
@Generated(from="ChatScheduleMessageParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class ChatScheduleMessageParams.Builder
extends Object
Builds instances of type
ChatScheduleMessageParams.
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 TypeMethodDescriptionaddAllAttachments(Iterable<? extends Attachment> elements) Adds elements toattachmentslist.addAllBlocks(Iterable<? extends Block> elements) Adds elements toblockslist.addAttachments(Attachment element) Adds one element toattachmentslist.addAttachments(Attachment... elements) Adds elements toattachmentslist.Adds one element toblockslist.Adds elements toblockslist.build()Builds a newChatScheduleMessageParams.from(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.from(ChatScheduleMessageParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.ChatScheduleMessageParamsIFinstance.from(MessageParams instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.MessageParamsinstance.setAttachments(Iterable<? extends Attachment> elements) Sets or replaces all elements forattachmentslist.Sets or replaces all elements forblockslist.setChannelId(String channelId) Initializes the value for thechannelIdattribute.setParseMode(String parseMode) Initializes the value for theparseModeattribute.setPostAt(long postAt) Initializes the value for thepostAtattribute.setShouldLinkNames(boolean shouldLinkNames) Initializes the value for theshouldLinkNamesattribute.Initializes the optional valuetextto text.Initializes the optional valuetextto text.setThreadTs(String threadTs) Initializes the value for thethreadTsattribute.setUnfurlLinks(Boolean unfurlLinks) Initializes the optional valueunfurlLinksto unfurlLinks.setUnfurlLinks(Optional<Boolean> unfurlLinks) Initializes the optional valueunfurlLinksto unfurlLinks.setUnfurlMedia(Boolean unfurlMedia) Initializes the optional valueunfurlMediato unfurlMedia.setUnfurlMedia(Optional<Boolean> unfurlMedia) Initializes the optional valueunfurlMediato unfurlMedia.
-
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.MessageParamsinstance.- 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.ChatScheduleMessageParamsIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setText
Initializes the optional valuetextto text.- Parameters:
text- The value for text,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setText
Initializes the optional valuetextto text.- Parameters:
text- The value for text- Returns:
thisbuilder for use in a chained invocation
-
addAttachments
Adds one element toattachmentslist.- Parameters:
element- A attachments element- Returns:
thisbuilder for use in a chained invocation
-
addAttachments
Adds elements toattachmentslist.- Parameters:
elements- An array of attachments elements- Returns:
thisbuilder for use in a chained invocation
-
setAttachments
public final ChatScheduleMessageParams.Builder setAttachments(Iterable<? extends Attachment> elements) Sets or replaces all elements forattachmentslist.- Parameters:
elements- An iterable of attachments elements- Returns:
thisbuilder for use in a chained invocation
-
addAllAttachments
public final ChatScheduleMessageParams.Builder addAllAttachments(Iterable<? extends Attachment> elements) Adds elements toattachmentslist.- Parameters:
elements- An iterable of attachments elements- Returns:
thisbuilder for use in a chained invocation
-
addBlocks
Adds one element toblockslist.- Parameters:
element- A blocks element- Returns:
thisbuilder for use in a chained invocation
-
addBlocks
Adds elements toblockslist.- Parameters:
elements- An array of blocks elements- Returns:
thisbuilder for use in a chained invocation
-
setBlocks
Sets or replaces all elements forblockslist.- Parameters:
elements- An iterable of blocks elements- Returns:
thisbuilder for use in a chained invocation
-
addAllBlocks
Adds elements toblockslist.- Parameters:
elements- An iterable of blocks elements- 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
-
setPostAt
Initializes the value for thepostAtattribute.- Parameters:
postAt- The value for postAt- Returns:
thisbuilder for use in a chained invocation
-
setShouldLinkNames
Initializes the value for theshouldLinkNamesattribute.If not set, this attribute will have a default value as returned by the initializer of
shouldLinkNames.- Parameters:
shouldLinkNames- The value for shouldLinkNames- Returns:
thisbuilder for use in a chained invocation
-
setParseMode
Initializes the value for theparseModeattribute.If not set, this attribute will have a default value as returned by the initializer of
parseMode.- Parameters:
parseMode- The value for parseMode- Returns:
thisbuilder for use in a chained invocation
-
setThreadTs
Initializes the value for thethreadTsattribute.If not set, this attribute will have a default value as returned by the initializer of
threadTs.- Parameters:
threadTs- The value for threadTs- Returns:
thisbuilder for use in a chained invocation
-
setUnfurlLinks
Initializes the optional valueunfurlLinksto unfurlLinks.- Parameters:
unfurlLinks- The value for unfurlLinks,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUnfurlLinks
Initializes the optional valueunfurlLinksto unfurlLinks.- Parameters:
unfurlLinks- The value for unfurlLinks- Returns:
thisbuilder for use in a chained invocation
-
setUnfurlMedia
Initializes the optional valueunfurlMediato unfurlMedia.- Parameters:
unfurlMedia- The value for unfurlMedia,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setUnfurlMedia
Initializes the optional valueunfurlMediato unfurlMedia.- Parameters:
unfurlMedia- The value for unfurlMedia- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newChatScheduleMessageParams.- Returns:
- An immutable instance of ChatScheduleMessageParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-