@NotThreadSafe public static final class SlackEventMessageIm.Builder extends Object
SlackEventMessageIm.
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 |
|---|---|
SlackEventMessageIm |
build()
Builds a new
SlackEventMessageIm. |
SlackEventMessageIm.Builder |
from(AbstractSlackEventMessageIm instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.AbstractSlackEventMessageIm instance. |
SlackEventMessageIm.Builder |
from(HasChannel instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasChannel instance. |
SlackEventMessageIm.Builder |
from(HasUser instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasUser instance. |
SlackEventMessageIm.Builder |
from(SlackEvent instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEvent instance. |
SlackEventMessageIm.Builder |
from(SlackEventMessageBase instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEventMessageBase instance. |
SlackEventMessageIm.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
SlackEventMessageIm.Builder |
setSubtype(Optional<SlackMessageSubtype> subtype)
Initializes the optional value
subtype to subtype. |
SlackEventMessageIm.Builder |
setSubtype(SlackMessageSubtype subtype)
Initializes the optional value
subtype to subtype. |
SlackEventMessageIm.Builder |
setText(String text)
Initializes the value for the
text attribute. |
SlackEventMessageIm.Builder |
setThreadTs(Optional<String> threadTs)
Initializes the optional value
threadTs to threadTs. |
SlackEventMessageIm.Builder |
setThreadTs(String threadTs)
Initializes the optional value
threadTs to threadTs. |
SlackEventMessageIm.Builder |
setTs(String ts)
Initializes the value for the
ts attribute. |
SlackEventMessageIm.Builder |
setType(SlackEventType type)
Initializes the value for the
type attribute. |
SlackEventMessageIm.Builder |
setUserId(String userId)
Initializes the value for the
userId attribute. |
public final SlackEventMessageIm.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 SlackEventMessageIm.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 SlackEventMessageIm.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 SlackEventMessageIm.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 SlackEventMessageIm.Builder from(AbstractSlackEventMessageIm instance)
com.hubspot.slack.client.models.events.AbstractSlackEventMessageIm instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackEventMessageIm.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final SlackEventMessageIm.Builder setThreadTs(@Nullable String threadTs)
threadTs to threadTs.threadTs - The value for threadTs, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackEventMessageIm.Builder setThreadTs(Optional<String> threadTs)
threadTs to threadTs.threadTs - The value for threadTsthis builder for use in a chained invocationpublic final SlackEventMessageIm.Builder setText(String text)
text attribute.text - The value for textthis builder for use in a chained invocationpublic final SlackEventMessageIm.Builder setUserId(String userId)
userId attribute.userId - The value for userIdthis builder for use in a chained invocationpublic final SlackEventMessageIm.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 SlackEventMessageIm.Builder setSubtype(Optional<SlackMessageSubtype> subtype)
subtype to subtype.subtype - The value for subtypethis builder for use in a chained invocationpublic final SlackEventMessageIm.Builder setType(SlackEventType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final SlackEventMessageIm.Builder setTs(String ts)
ts attribute.ts - The value for tsthis builder for use in a chained invocationpublic SlackEventMessageIm build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackEventMessageIm.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.