@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","ShortcutIF"}) @Immutable public final class Shortcut extends Object implements ShortcutIF
ShortcutIF.
Use the builder to create immutable instances:
Shortcut.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
Shortcut.Builder
Builds instances of type
Shortcut. |
| Modifier and Type | Method and Description |
|---|---|
static Shortcut.Builder |
builder()
Creates a builder for
Shortcut. |
static Shortcut |
copyOf(ShortcutIF instance)
Creates an immutable copy of a
ShortcutIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
Shortcut that have equal attribute values. |
String |
getActionTs() |
String |
getCallbackId() |
SlackTeam |
getTeam() |
String |
getToken() |
String |
getTriggerId() |
InteractiveCallbackType |
getType() |
SlackUserLite |
getUser() |
int |
hashCode()
Computes a hash code from attributes:
triggerId, type, callbackId, actionTs, token, team, user. |
String |
toString()
Prints the immutable value
Shortcut with attribute values. |
Shortcut |
withActionTs(String actionTs)
Copy the current immutable object by setting a value for the
actionTs attribute. |
Shortcut |
withCallbackId(String callbackId)
Copy the current immutable object by setting a value for the
callbackId attribute. |
Shortcut |
withTeam(SlackTeam team)
Copy the current immutable object by setting a value for the
team attribute. |
Shortcut |
withToken(String token)
Copy the current immutable object by setting a value for the
token attribute. |
Shortcut |
withTriggerId(String triggerId)
Copy the current immutable object by setting a value for the
triggerId attribute. |
Shortcut |
withType(InteractiveCallbackType type)
Copy the current immutable object by setting a value for the
type attribute. |
Shortcut |
withUser(SlackUserLite user)
Copy the current immutable object by setting a value for the
user attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetChannelpublic String getTriggerId()
getTriggerId in interface ShortcutIFtriggerId attributepublic InteractiveCallbackType getType()
getType in interface SlackInteractiveCallbacktype attributepublic String getCallbackId()
getCallbackId in interface SlackInteractiveCallbackcallbackId attributepublic String getActionTs()
getActionTs in interface SlackInteractiveCallbackactionTs attributepublic String getToken()
getToken in interface SlackInteractiveCallbacktoken attributepublic SlackTeam getTeam()
getTeam in interface SlackInteractiveCallbackteam attributepublic SlackUserLite getUser()
getUser in interface SlackInteractiveCallbackuser attributepublic final Shortcut withTriggerId(String triggerId)
triggerId attribute.
An equals check used to prevent copying of the same value by returning this.triggerId - A new value for triggerIdthis objectpublic final Shortcut withType(InteractiveCallbackType type)
type attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.type - A new value for typethis objectpublic final Shortcut withCallbackId(String callbackId)
callbackId attribute.
An equals check used to prevent copying of the same value by returning this.callbackId - A new value for callbackIdthis objectpublic final Shortcut withActionTs(String actionTs)
actionTs attribute.
An equals check used to prevent copying of the same value by returning this.actionTs - A new value for actionTsthis objectpublic final Shortcut withToken(String token)
token attribute.
An equals check used to prevent copying of the same value by returning this.token - A new value for tokenthis objectpublic final Shortcut withTeam(SlackTeam team)
team attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.team - A new value for teamthis objectpublic final Shortcut withUser(SlackUserLite user)
user attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.user - A new value for userthis objectpublic boolean equals(@Nullable Object another)
Shortcut that have equal attribute values.public int hashCode()
triggerId, type, callbackId, actionTs, token, team, user.public String toString()
Shortcut with attribute values.public static Shortcut copyOf(ShortcutIF instance)
ShortcutIF value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static Shortcut.Builder builder()
Shortcut.Copyright © 2020. All rights reserved.