@NotThreadSafe public static final class ViewClosed.Builder extends Object
ViewClosed.
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 |
|---|---|
ViewClosed |
build()
Builds a new
ViewClosed. |
ViewClosed.Builder |
from(SlackInteractiveCallback instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.SlackInteractiveCallback instance. |
ViewClosed.Builder |
from(ViewClosedIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.ViewClosedIF instance. |
ViewClosed.Builder |
setActionTs(String actionTs)
Initializes the value for the
actionTs attribute. |
ViewClosed.Builder |
setCallbackId(String callbackId)
Initializes the value for the
callbackId attribute. |
ViewClosed.Builder |
setChannel(SlackChannel channel)
Initializes the value for the
channel attribute. |
ViewClosed.Builder |
setIsCleared(boolean isCleared)
Initializes the value for the
isCleared attribute. |
ViewClosed.Builder |
setTeam(SlackTeam team)
Initializes the value for the
team attribute. |
ViewClosed.Builder |
setToken(String token)
Initializes the value for the
token attribute. |
ViewClosed.Builder |
setType(InteractiveCallbackType type)
Initializes the value for the
type attribute. |
ViewClosed.Builder |
setUser(SlackUserLite user)
Initializes the value for the
user attribute. |
ViewClosed.Builder |
setView(ViewPayloadBase view)
Initializes the value for the
view attribute. |
public final ViewClosed.Builder from(SlackInteractiveCallback instance)
com.hubspot.slack.client.models.interaction.SlackInteractiveCallback instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ViewClosed.Builder from(ViewClosedIF instance)
com.hubspot.slack.client.models.interaction.ViewClosedIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ViewClosed.Builder setView(ViewPayloadBase view)
view attribute.view - The value for viewthis builder for use in a chained invocationpublic final ViewClosed.Builder setIsCleared(boolean isCleared)
isCleared attribute.isCleared - The value for isClearedthis builder for use in a chained invocationpublic final ViewClosed.Builder setType(InteractiveCallbackType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final ViewClosed.Builder setCallbackId(String callbackId)
callbackId attribute.callbackId - The value for callbackIdthis builder for use in a chained invocationpublic final ViewClosed.Builder setActionTs(String actionTs)
actionTs attribute.actionTs - The value for actionTsthis builder for use in a chained invocationpublic final ViewClosed.Builder setToken(String token)
token attribute.token - The value for tokenthis builder for use in a chained invocationpublic final ViewClosed.Builder setTeam(SlackTeam team)
team attribute.team - The value for teamthis builder for use in a chained invocationpublic final ViewClosed.Builder setUser(SlackUserLite user)
user attribute.user - The value for userthis builder for use in a chained invocationpublic final ViewClosed.Builder setChannel(SlackChannel channel)
channel attribute.channel - The value for channelthis builder for use in a chained invocationpublic ViewClosed build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
ViewClosed.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2020. All rights reserved.