@NotThreadSafe public static final class SlackEventMessageReplied.Builder extends Object
SlackEventMessageReplied.
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 |
|---|---|
SlackEventMessageReplied |
build()
Builds a new
SlackEventMessageReplied. |
SlackEventMessageReplied.Builder |
from(AbstractSlackEventMessageReplied instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.AbstractSlackEventMessageReplied instance. |
SlackEventMessageReplied.Builder |
from(HasChannel instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasChannel instance. |
SlackEventMessageReplied.Builder |
from(SlackEvent instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEvent instance. |
SlackEventMessageReplied.Builder |
from(SlackEventMessageBase instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEventMessageBase instance. |
SlackEventMessageReplied.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
SlackEventMessageReplied.Builder |
setMessage(SlackReplyMessage message)
Initializes the value for the
message attribute. |
SlackEventMessageReplied.Builder |
setSubtype(Optional<SlackMessageSubtype> subtype)
Initializes the optional value
subtype to subtype. |
SlackEventMessageReplied.Builder |
setSubtype(SlackMessageSubtype subtype)
Initializes the optional value
subtype to subtype. |
SlackEventMessageReplied.Builder |
setTs(String ts)
Initializes the value for the
ts attribute. |
SlackEventMessageReplied.Builder |
setType(SlackEventType type)
Initializes the value for the
type attribute. |
public final SlackEventMessageReplied.Builder from(AbstractSlackEventMessageReplied instance)
com.hubspot.slack.client.models.events.AbstractSlackEventMessageReplied instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackEventMessageReplied.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 SlackEventMessageReplied.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 SlackEventMessageReplied.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 SlackEventMessageReplied.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final SlackEventMessageReplied.Builder setMessage(SlackReplyMessage message)
message attribute.message - The value for messagethis builder for use in a chained invocationpublic final SlackEventMessageReplied.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 SlackEventMessageReplied.Builder setSubtype(Optional<SlackMessageSubtype> subtype)
subtype to subtype.subtype - The value for subtypethis builder for use in a chained invocationpublic final SlackEventMessageReplied.Builder setType(SlackEventType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final SlackEventMessageReplied.Builder setTs(String ts)
ts attribute.ts - The value for tsthis builder for use in a chained invocationpublic SlackEventMessageReplied build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackEventMessageReplied.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.