@NotThreadSafe public static final class SlackEventMessageChanged.Builder extends Object
SlackEventMessageChanged.
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 |
|---|---|
SlackEventMessageChanged |
build()
Builds a new
SlackEventMessageChanged. |
SlackEventMessageChanged.Builder |
from(AbstractSlackEventMessageChanged instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.AbstractSlackEventMessageChanged instance. |
SlackEventMessageChanged.Builder |
from(HasChannel instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.methods.interceptor.HasChannel instance. |
SlackEventMessageChanged.Builder |
from(SlackEvent instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEvent instance. |
SlackEventMessageChanged.Builder |
from(SlackEventMessageBase instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.events.SlackEventMessageBase instance. |
SlackEventMessageChanged.Builder |
setChannelId(String channelId)
Initializes the value for the
channelId attribute. |
SlackEventMessageChanged.Builder |
setEventTs(String eventTs)
Initializes the value for the
eventTs attribute. |
SlackEventMessageChanged.Builder |
setHidden(boolean hidden)
Initializes the value for the
hidden attribute. |
SlackEventMessageChanged.Builder |
setMessage(LiteMessage message)
Initializes the value for the
message attribute. |
SlackEventMessageChanged.Builder |
setPreviousMessage(LiteMessage previousMessage)
Initializes the optional value
previousMessage to previousMessage. |
SlackEventMessageChanged.Builder |
setPreviousMessage(Optional<LiteMessage> previousMessage)
Initializes the optional value
previousMessage to previousMessage. |
SlackEventMessageChanged.Builder |
setSubtype(Optional<SlackMessageSubtype> subtype)
Initializes the optional value
subtype to subtype. |
SlackEventMessageChanged.Builder |
setSubtype(SlackMessageSubtype subtype)
Initializes the optional value
subtype to subtype. |
SlackEventMessageChanged.Builder |
setTs(String ts)
Initializes the value for the
ts attribute. |
SlackEventMessageChanged.Builder |
setType(SlackEventType type)
Initializes the value for the
type attribute. |
public final SlackEventMessageChanged.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 SlackEventMessageChanged.Builder from(AbstractSlackEventMessageChanged instance)
com.hubspot.slack.client.models.events.AbstractSlackEventMessageChanged instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final SlackEventMessageChanged.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 SlackEventMessageChanged.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 SlackEventMessageChanged.Builder setChannelId(String channelId)
channelId attribute.channelId - The value for channelIdthis builder for use in a chained invocationpublic final SlackEventMessageChanged.Builder setHidden(boolean hidden)
hidden attribute.hidden - The value for hiddenthis builder for use in a chained invocationpublic final SlackEventMessageChanged.Builder setMessage(LiteMessage message)
message attribute.message - The value for messagethis builder for use in a chained invocationpublic final SlackEventMessageChanged.Builder setPreviousMessage(@Nullable LiteMessage previousMessage)
previousMessage to previousMessage.previousMessage - The value for previousMessage, null is accepted as java.util.Optional.empty()this builder for chained invocationpublic final SlackEventMessageChanged.Builder setPreviousMessage(Optional<LiteMessage> previousMessage)
previousMessage to previousMessage.previousMessage - The value for previousMessagethis builder for use in a chained invocationpublic final SlackEventMessageChanged.Builder setEventTs(String eventTs)
eventTs attribute.eventTs - The value for eventTsthis builder for use in a chained invocationpublic final SlackEventMessageChanged.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 SlackEventMessageChanged.Builder setSubtype(Optional<SlackMessageSubtype> subtype)
subtype to subtype.subtype - The value for subtypethis builder for use in a chained invocationpublic final SlackEventMessageChanged.Builder setType(SlackEventType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final SlackEventMessageChanged.Builder setTs(String ts)
ts attribute.ts - The value for tsthis builder for use in a chained invocationpublic SlackEventMessageChanged build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
SlackEventMessageChanged.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.