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