Class Shortcut
java.lang.Object
com.hubspot.slack.client.models.interaction.Shortcut
- All Implemented Interfaces:
ShortcutIF,SlackInteractiveCallback
@Generated(from="ShortcutIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class Shortcut
extends Object
implements ShortcutIF
Immutable implementation of
ShortcutIF.
Use the builder to create immutable instances:
Shortcut.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Shortcut.Builderbuilder()Creates a builder forShortcut.static ShortcutcopyOf(ShortcutIF instance) Creates an immutable copy of aShortcutIFvalue.booleanThis instance is equal to all instances ofShortcutthat have equal attribute values.getTeam()getToken()getType()getUser()inthashCode()Computes a hash code from attributes:type,callbackId,actionTs,token,team,user,triggerId.toString()Prints the immutable valueShortcutwith attribute values.final ShortcutwithActionTs(String value) Copy the current immutable object by setting a value for theactionTsattribute.final ShortcutwithCallbackId(String value) Copy the current immutable object by setting a value for thecallbackIdattribute.final ShortcutCopy the current immutable object by setting a value for theteamattribute.final ShortcutCopy the current immutable object by setting a value for thetokenattribute.final ShortcutwithTriggerId(String value) Copy the current immutable object by setting a value for thetriggerIdattribute.final ShortcutwithType(InteractiveCallbackType value) Copy the current immutable object by setting a value for thetypeattribute.final ShortcutwithUser(SlackUserLite value) Copy the current immutable object by setting a value for theuserattribute.Methods inherited from interface com.hubspot.slack.client.models.interaction.ShortcutIF
getChannel
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackInteractiveCallback- Returns:
- The value of the
typeattribute
-
getCallbackId
- Specified by:
getCallbackIdin interfaceSlackInteractiveCallback- Returns:
- The value of the
callbackIdattribute
-
getActionTs
- Specified by:
getActionTsin interfaceSlackInteractiveCallback- Returns:
- The value of the
actionTsattribute
-
getToken
- Specified by:
getTokenin interfaceSlackInteractiveCallback- Returns:
- The value of the
tokenattribute
-
getTeam
- Specified by:
getTeamin interfaceSlackInteractiveCallback- Returns:
- The value of the
teamattribute
-
getUser
- Specified by:
getUserin interfaceSlackInteractiveCallback- Returns:
- The value of the
userattribute
-
getTriggerId
- Specified by:
getTriggerIdin interfaceShortcutIF- Returns:
- The value of the
triggerIdattribute
-
withType
Copy the current immutable object by setting a value for thetypeattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for type- Returns:
- A modified copy or the
thisobject
-
withCallbackId
Copy the current immutable object by setting a value for thecallbackIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for callbackId- Returns:
- A modified copy or the
thisobject
-
withActionTs
Copy the current immutable object by setting a value for theactionTsattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for actionTs- Returns:
- A modified copy or the
thisobject
-
withToken
Copy the current immutable object by setting a value for thetokenattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for token- Returns:
- A modified copy or the
thisobject
-
withTeam
Copy the current immutable object by setting a value for theteamattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for team- Returns:
- A modified copy or the
thisobject
-
withUser
Copy the current immutable object by setting a value for theuserattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for user- Returns:
- A modified copy or the
thisobject
-
withTriggerId
Copy the current immutable object by setting a value for thetriggerIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for triggerId- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofShortcutthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,callbackId,actionTs,token,team,user,triggerId. -
toString
Prints the immutable valueShortcutwith attribute values. -
copyOf
Creates an immutable copy of aShortcutIFvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable Shortcut instance
-
builder
Creates a builder forShortcut.Shortcut.builder() .setType(com.hubspot.slack.client.models.interaction.InteractiveCallbackType) // requiredtype.setCallbackId(String) // requiredcallbackId.setActionTs(String) // requiredactionTs.setToken(String) // requiredtoken.setTeam(com.hubspot.slack.client.models.teams.SlackTeam) // requiredteam.setUser(com.hubspot.slack.client.models.users.SlackUserLite) // requireduser.setTriggerId(String) // requiredtriggerId.build();- Returns:
- A new Shortcut builder
-