@NotThreadSafe public static final class MessageAction.Builder extends Object
MessageAction.
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 |
|---|---|
MessageAction |
build()
Builds a new
MessageAction. |
MessageAction.Builder |
from(MessageActionIF instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.MessageActionIF instance. |
MessageAction.Builder |
from(SlackInteractiveCallback instance)
Fill a builder with attribute values from the provided
com.hubspot.slack.client.models.interaction.SlackInteractiveCallback instance. |
MessageAction.Builder |
setActionTs(String actionTs)
Initializes the value for the
actionTs attribute. |
MessageAction.Builder |
setCallbackId(String callbackId)
Initializes the value for the
callbackId attribute. |
MessageAction.Builder |
setChannel(SlackChannel channel)
Initializes the value for the
channel attribute. |
MessageAction.Builder |
setMessage(LiteMessage message)
Initializes the value for the
message attribute. |
MessageAction.Builder |
setResponseUrl(String responseUrl)
Initializes the value for the
responseUrl attribute. |
MessageAction.Builder |
setTeam(SlackTeam team)
Initializes the value for the
team attribute. |
MessageAction.Builder |
setToken(String token)
Initializes the value for the
token attribute. |
MessageAction.Builder |
setTriggerId(String triggerId)
Initializes the value for the
triggerId attribute. |
MessageAction.Builder |
setType(InteractiveCallbackType type)
Initializes the value for the
type attribute. |
MessageAction.Builder |
setUser(SlackUserLite user)
Initializes the value for the
user attribute. |
public final MessageAction.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 MessageAction.Builder from(MessageActionIF instance)
com.hubspot.slack.client.models.interaction.MessageActionIF instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final MessageAction.Builder setTriggerId(String triggerId)
triggerId attribute.triggerId - The value for triggerIdthis builder for use in a chained invocationpublic final MessageAction.Builder setResponseUrl(String responseUrl)
responseUrl attribute.responseUrl - The value for responseUrlthis builder for use in a chained invocationpublic final MessageAction.Builder setMessage(LiteMessage message)
message attribute.message - The value for messagethis builder for use in a chained invocationpublic final MessageAction.Builder setType(InteractiveCallbackType type)
type attribute.type - The value for typethis builder for use in a chained invocationpublic final MessageAction.Builder setCallbackId(String callbackId)
callbackId attribute.callbackId - The value for callbackIdthis builder for use in a chained invocationpublic final MessageAction.Builder setActionTs(String actionTs)
actionTs attribute.actionTs - The value for actionTsthis builder for use in a chained invocationpublic final MessageAction.Builder setToken(String token)
token attribute.token - The value for tokenthis builder for use in a chained invocationpublic final MessageAction.Builder setTeam(SlackTeam team)
team attribute.team - The value for teamthis builder for use in a chained invocationpublic final MessageAction.Builder setChannel(SlackChannel channel)
channel attribute.channel - The value for channelthis builder for use in a chained invocationpublic final MessageAction.Builder setUser(SlackUserLite user)
user attribute.user - The value for userthis builder for use in a chained invocationpublic MessageAction build() throws com.hubspot.immutables.validation.InvalidImmutableStateException
MessageAction.com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missingCopyright © 2019. All rights reserved.