Class Shortcut.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.Shortcut.Builder
- Enclosing class:
Shortcut
@Generated(from="ShortcutIF",
generator="Immutables")
@NotThreadSafe
public static final class Shortcut.Builder
extends Object
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newShortcut.final Shortcut.Builderfrom(ShortcutIF instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.ShortcutIFinstance.final Shortcut.Builderfrom(SlackInteractiveCallback instance) Fill a builder with attribute values from the providedcom.hubspot.slack.client.models.interaction.SlackInteractiveCallbackinstance.final Shortcut.BuildersetActionTs(String actionTs) Initializes the value for theactionTsattribute.final Shortcut.BuildersetCallbackId(String callbackId) Initializes the value for thecallbackIdattribute.final Shortcut.BuilderInitializes the value for theteamattribute.final Shortcut.BuilderInitializes the value for thetokenattribute.final Shortcut.BuildersetTriggerId(String triggerId) Initializes the value for thetriggerIdattribute.final Shortcut.BuilderInitializes the value for thetypeattribute.final Shortcut.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.ShortcutIFinstance.- 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.SlackInteractiveCallbackinstance.- 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
-
setCallbackId
Initializes the value for thecallbackIdattribute.- Parameters:
callbackId- The value for callbackId- 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
-
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
-
setTriggerId
Initializes the value for thetriggerIdattribute.- Parameters:
triggerId- The value for triggerId- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newShortcut.- Returns:
- An immutable instance of Shortcut
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-