Class ChatUpdateMessageParams.Builder
java.lang.Object
com.hubspot.slack.client.methods.params.chat.ChatUpdateMessageParams.Builder
- Enclosing class:
ChatUpdateMessageParams
@Generated(from="ChatUpdateMessageParamsIF",
generator="Immutables")
@NotThreadSafe
public static final class ChatUpdateMessageParams.Builder
extends Object
Builds instances of type
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.
-
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 newChatUpdateMessageParams.from(HasChannel instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.interceptor.HasChannelinstance.from(ChatUpdateMessageParamsIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.ChatUpdateMessageParamsIFinstance.from(MessageParams instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.methods.params.chat.MessageParamsinstance.Initializes the optional valueasUserto asUser.Initializes the optional valueasUserto asUser.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.Initializes the value for theparseattribute.setShouldLinkNames(boolean shouldLinkNames) Initializes the value for theshouldLinkNamesattribute.Initializes the optional valuetextto text.Initializes the optional valuetextto text.Initializes the value for thetsattribute.
-
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.ChatUpdateMessageParamsIFinstance.- 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
-
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 ChatUpdateMessageParams.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 ChatUpdateMessageParams.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
-
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
-
setTs
Initializes the value for thetsattribute.- Parameters:
ts- The value for ts- Returns:
thisbuilder for use in a chained invocation
-
setAsUser
Initializes the optional valueasUserto asUser.- Parameters:
asUser- The value for asUser,nullis accepted asjava.util.Optional.empty()- Returns:
thisbuilder for chained invocation
-
setAsUser
Initializes the optional valueasUserto asUser.- Parameters:
asUser- The value for asUser- 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
-
setParse
Initializes the value for theparseattribute.If not set, this attribute will have a default value as returned by the initializer of
parse.- Parameters:
parse- The value for parse- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newChatUpdateMessageParams.- Returns:
- An immutable instance of ChatUpdateMessageParams
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-