@NotThreadSafe public static final class SlackReplyMessage.Builder extends Object
SlackReplyMessage.
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 |
|---|---|
SlackReplyMessage.Builder |
addAllReplies(Iterable<? extends Reply> elements)
Deprecated.
|
SlackReplyMessage.Builder |
addReplies(Reply... elements)
Deprecated.
|
SlackReplyMessage.Builder |
addReplies(Reply element)
Deprecated.
|
SlackReplyMessage |
build()
Builds a new
SlackReplyMessage. |
SlackReplyMessage.Builder |
from(AbstractSlackReplyMessage instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.util.AbstractSlackReplyMessage instance. |
SlackReplyMessage.Builder |
from(HasChannel instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasChannel instance. |
SlackReplyMessage.Builder |
from(HasUser instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasUser instance. |
SlackReplyMessage.Builder |
from(SlackEvent instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEvent instance. |
SlackReplyMessage.Builder |
from(SlackEventMessageBase instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEventMessageBase instance. |
SlackReplyMessage.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
SlackReplyMessage.Builder |
setLatestReplyTimestamp(Optional<String> latestReplyTimestamp)
Initializes the optional value
latestReplyTimestamp to latestReplyTimestamp. |
SlackReplyMessage.Builder |
setLatestReplyTimestamp(String latestReplyTimestamp)
Initializes the optional value
latestReplyTimestamp to latestReplyTimestamp. |
SlackReplyMessage.Builder |
setReplies(Iterable<? extends Reply> elements)
Deprecated.
|
SlackReplyMessage.Builder |
setReplyCount(int replyCount)
Initializes the value for the
replyCount attribute. |
SlackReplyMessage.Builder |
setReplyUserIds(List<String> replyUserIds)
Initializes the optional value
replyUserIds to replyUserIds. |
SlackReplyMessage.Builder |
setReplyUserIds(Optional<List<String>> replyUserIds)
Initializes the optional value
replyUserIds to replyUserIds. |
SlackReplyMessage.Builder |
setReplyUsersCount(Integer replyUsersCount)
Initializes the optional value
replyUsersCount to replyUsersCount. |
SlackReplyMessage.Builder |
setReplyUsersCount(Optional<Integer> replyUsersCount)
Initializes the optional value
replyUsersCount to replyUsersCount. |
SlackReplyMessage.Builder |
setSubtype(Optional<SlackMessageSubtype> subtype)
Initializes the optional value
subtype to subtype. |
SlackReplyMessage.Builder |
setSubtype(SlackMessageSubtype subtype)
Initializes the optional value
subtype to subtype. |
SlackReplyMessage.Builder |
setThreadTs(String threadTs)
Initializes the value for the
threadTs attribute. |
SlackReplyMessage.Builder |
setTs(String ts)
Initializes the value for the
ts attribute. |
SlackReplyMessage.Builder |
setType(SlackEventType type)
Initializes the value for the
type attribute. |
SlackReplyMessage.Builder |
setUserId(String userId)
Initializes the value for the
userId attribute. |
public final SlackReplyMessage.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 SlackReplyMessage.Builder from(SlackEventMessageBase instance)
com.hubspot.slack.client.models.events.SlackEventMessageBase instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackReplyMessage.Builder from(SlackEvent instance)
com.hubspot.slack.client.models.events.SlackEvent instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackReplyMessage.Builder from(HasUser instance)
com.hubspot.slack.client.methods.interceptor.HasUser instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackReplyMessage.Builder from(AbstractSlackReplyMessage instance)
com.hubspot.slack.client.models.events.util.AbstractSlackReplyMessage instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackReplyMessage.Builder setThreadTs(String threadTs)
threadTs attribute.threadTs - The value for threadTsthis builder for use in a chained invocationpublic final SlackReplyMessage.Builder setUserId(String userId)
userId attribute.userId - The value for userIdthis builder for use in a chained invocationpublic final SlackReplyMessage.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final SlackReplyMessage.Builder setReplyCount(int replyCount)
replyCount attribute.
If not set, this attribute will have a default value as returned by the initializer of replyCount.
replyCount - The value for replyCountthis builder for use in a chained invocationpublic final SlackReplyMessage.Builder setReplyUserIds(@Nullable List<String> replyUserIds)
replyUserIds to replyUserIds.replyUserIds - The value for replyUserIds, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackReplyMessage.Builder setReplyUserIds(Optional<List<String>> replyUserIds)
replyUserIds to replyUserIds.replyUserIds - The value for replyUserIdsthis builder for use in a chained invocationpublic final SlackReplyMessage.Builder setReplyUsersCount(@Nullable Integer replyUsersCount)
replyUsersCount to replyUsersCount.replyUsersCount - The value for replyUsersCount, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackReplyMessage.Builder setReplyUsersCount(Optional<Integer> replyUsersCount)
replyUsersCount to replyUsersCount.replyUsersCount - The value for replyUsersCountthis builder for use in a chained invocationpublic final SlackReplyMessage.Builder setLatestReplyTimestamp(@Nullable String latestReplyTimestamp)
latestReplyTimestamp to latestReplyTimestamp.latestReplyTimestamp - The value for latestReplyTimestamp, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackReplyMessage.Builder setLatestReplyTimestamp(Optional<String> latestReplyTimestamp)
latestReplyTimestamp to latestReplyTimestamp.latestReplyTimestamp - The value for latestReplyTimestampthis builder for use in a chained invocation@Deprecated public final SlackReplyMessage.Builder addReplies(Reply element)
replies list.element - A replies elementthis builder for use in a chained invocation@Deprecated public final SlackReplyMessage.Builder addReplies(Reply... elements)
replies list.elements - An array of replies elementsthis builder for use in a chained invocation@Deprecated public final SlackReplyMessage.Builder setReplies(Iterable<? extends Reply> elements)
replies list.elements - An iterable of replies elementsthis builder for use in a chained invocation@Deprecated public final SlackReplyMessage.Builder addAllReplies(Iterable<? extends Reply> elements)
replies list.elements - An iterable of replies elementsthis builder for use in a chained invocationpublic final SlackReplyMessage.Builder setSubtype(@Nullable SlackMessageSubtype subtype)
subtype to subtype.subtype - The value for subtype, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackReplyMessage.Builder setSubtype(Optional<SlackMessageSubtype> subtype)
subtype to subtype.subtype - The value for subtypethis builder for use in a chained invocationpublic final SlackReplyMessage.Builder setType(SlackEventType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final SlackReplyMessage.Builder setTs(String ts)
ts attribute.ts - The value for tsthis builder for use in a chained invocationpublic SlackReplyMessage build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackReplyMessage.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.