Class MessageAction.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.MessageAction.Builder
- Enclosing class:
MessageAction
@Generated(from="MessageActionIF",
generator="Immutables")
@NotThreadSafe
public static final class MessageAction.Builder
extends Object
Builds instances of type
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.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newMessageAction.final MessageAction.Builderfrom(MessageActionIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.MessageActionIFinstance.final MessageAction.Builderfrom(SlackInteractiveCallback instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.SlackInteractiveCallbackinstance.final MessageAction.BuildersetActionTs(String actionTs) Initializes the value for theactionTsattribute.final MessageAction.BuildersetCallbackId(String callbackId) Initializes the value for thecallbackIdattribute.final MessageAction.BuildersetChannel(SlackChannel channel) Initializes the value for thechannelattribute.final MessageAction.BuildersetMessage(LiteMessage message) Initializes the value for themessageattribute.final MessageAction.BuildersetResponseUrl(String responseUrl) Initializes the value for theresponseUrlattribute.final MessageAction.BuilderInitializes the value for theteamattribute.final MessageAction.BuilderInitializes the value for thetokenattribute.final MessageAction.BuildersetTriggerId(String triggerId) Initializes the value for thetriggerIdattribute.final MessageAction.BuilderInitializes the value for thetypeattribute.final MessageAction.BuildersetUser(SlackUserLite user) Initializes the value for theuserattribute.
-
Method Details
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.SlackInteractiveCallbackinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
from
Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.MessageActionIFinstance.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
setType
Initializes the value for thetypeattribute.- Parameters:
type- The value for type- Returns:
thisbuilder for use in a chained invocation
-
setToken
Initializes the value for thetokenattribute.- Parameters:
token- The value for token- Returns:
thisbuilder for use in a chained invocation
-
setTeam
Initializes the value for theteamattribute.- Parameters:
team- The value for team- Returns:
thisbuilder for use in a chained invocation
-
setUser
Initializes the value for theuserattribute.- Parameters:
user- The value for user- Returns:
thisbuilder for use in a chained invocation
-
setChannel
Initializes the value for thechannelattribute.- Parameters:
channel- The value for channel- Returns:
thisbuilder for use in a chained invocation
-
setActionTs
Initializes the value for theactionTsattribute.- Parameters:
actionTs- The value for actionTs- Returns:
thisbuilder for use in a chained invocation
-
setCallbackId
Initializes the value for thecallbackIdattribute.- Parameters:
callbackId- The value for callbackId- Returns:
thisbuilder for use in a chained invocation
-
setTriggerId
Initializes the value for thetriggerIdattribute.- Parameters:
triggerId- The value for triggerId- Returns:
thisbuilder for use in a chained invocation
-
setResponseUrl
Initializes the value for theresponseUrlattribute.- Parameters:
responseUrl- The value for responseUrl- Returns:
thisbuilder for use in a chained invocation
-
setMessage
Initializes the value for themessageattribute.- Parameters:
message- The value for message- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newMessageAction.- Returns:
- An immutable instance of MessageAction
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-