@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","InteractiveActionIF"}) @Immutable public final class InteractiveAction extends Object implements InteractiveActionIF
InteractiveActionIF.
Use the builder to create immutable instances:
InteractiveAction.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
InteractiveAction.Builder
Builds instances of type
InteractiveAction. |
| Modifier and Type | Method and Description |
|---|---|
static InteractiveAction.Builder |
builder()
Creates a builder for
InteractiveAction. |
static InteractiveAction |
copyOf(InteractiveActionIF instance)
Creates an immutable copy of a
InteractiveActionIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
InteractiveAction that have equal attribute values. |
List<Action> |
getActions() |
String |
getActionTs() |
int |
getAttachmentId() |
String |
getCallbackId() |
SlackChannel |
getChannel() |
String |
getMessageTs() |
Optional<LiteMessage> |
getOriginalMessage() |
String |
getResponseUrl() |
SlackTeam |
getTeam() |
String |
getToken() |
String |
getTriggerId() |
InteractiveCallbackType |
getType() |
SlackUserLite |
getUser() |
int |
hashCode()
Computes a hash code from attributes:
actions, messageTs, attachmentId, appUnfurl, originalMessage, responseUrl, triggerId, type, callbackId, actionTs, token, team, channel, user. |
boolean |
isAppUnfurl() |
String |
toString()
Prints the immutable value
InteractiveAction with attribute values. |
InteractiveAction |
withActions(Action... elements)
Copy the current immutable object with elements that replace the content of
actions. |
InteractiveAction |
withActions(Iterable<? extends Action> elements)
Copy the current immutable object with elements that replace the content of
actions. |
InteractiveAction |
withActionTs(String actionTs)
Copy the current immutable object by setting a value for the
actionTs attribute. |
InteractiveAction |
withAppUnfurl(boolean appUnfurl)
Copy the current immutable object by setting a value for the
appUnfurl attribute. |
InteractiveAction |
withAttachmentId(int attachmentId)
Copy the current immutable object by setting a value for the
attachmentId attribute. |
InteractiveAction |
withCallbackId(String callbackId)
Copy the current immutable object by setting a value for the
callbackId attribute. |
InteractiveAction |
withChannel(SlackChannel channel)
Copy the current immutable object by setting a value for the
channel attribute. |
InteractiveAction |
withMessageTs(String messageTs)
Copy the current immutable object by setting a value for the
messageTs attribute. |
InteractiveAction |
withOriginalMessage(LiteMessage value)
Copy the current immutable object by setting a present value for the optional
originalMessage attribute. |
InteractiveAction |
withOriginalMessage(Optional<LiteMessage> optional)
Copy the current immutable object by setting an optional value for the
originalMessage attribute. |
InteractiveAction |
withResponseUrl(String responseUrl)
Copy the current immutable object by setting a value for the
responseUrl attribute. |
InteractiveAction |
withTeam(SlackTeam team)
Copy the current immutable object by setting a value for the
team attribute. |
InteractiveAction |
withToken(String token)
Copy the current immutable object by setting a value for the
token attribute. |
InteractiveAction |
withTriggerId(String triggerId)
Copy the current immutable object by setting a value for the
triggerId attribute. |
InteractiveAction |
withType(InteractiveCallbackType type)
Copy the current immutable object by setting a value for the
type attribute. |
InteractiveAction |
withUser(SlackUserLite user)
Copy the current immutable object by setting a value for the
user attribute. |
public List<Action> getActions()
getActions in interface InteractiveActionIFactions attributepublic String getMessageTs()
getMessageTs in interface InteractiveActionIFmessageTs attributepublic int getAttachmentId()
getAttachmentId in interface InteractiveActionIFattachmentId attributepublic boolean isAppUnfurl()
isAppUnfurl in interface InteractiveActionIFappUnfurl attributepublic Optional<LiteMessage> getOriginalMessage()
getOriginalMessage in interface InteractiveActionIForiginalMessage attributepublic String getResponseUrl()
getResponseUrl in interface InteractiveActionIFresponseUrl attributepublic String getTriggerId()
getTriggerId in interface InteractiveActionIFtriggerId 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 SlackChannel getChannel()
getChannel in interface SlackInteractiveCallbackchannel attributepublic SlackUserLite getUser()
getUser in interface SlackInteractiveCallbackuser attributepublic final InteractiveAction withActions(Action... elements)
actions.elements - The elements to setthis objectpublic final InteractiveAction withActions(Iterable<? extends Action> elements)
actions.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of actions elements to setthis objectpublic final InteractiveAction withMessageTs(String messageTs)
messageTs attribute.
An equals check used to prevent copying of the same value by returning this.messageTs - A new value for messageTsthis objectpublic final InteractiveAction withAttachmentId(int attachmentId)
attachmentId attribute.
A value equality check is used to prevent copying of the same value by returning this.attachmentId - A new value for attachmentIdthis objectpublic final InteractiveAction withAppUnfurl(boolean appUnfurl)
appUnfurl attribute.
A value equality check is used to prevent copying of the same value by returning this.appUnfurl - A new value for appUnfurlthis objectpublic final InteractiveAction withOriginalMessage(@Nullable LiteMessage value)
originalMessage attribute.value - The value for originalMessage, null is accepted as java.util.Optional.empty()this objectpublic final InteractiveAction withOriginalMessage(Optional<LiteMessage> optional)
originalMessage attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for originalMessagethis objectpublic final InteractiveAction withResponseUrl(String responseUrl)
responseUrl attribute.
An equals check used to prevent copying of the same value by returning this.responseUrl - A new value for responseUrlthis objectpublic final InteractiveAction 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 InteractiveAction 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 InteractiveAction 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 InteractiveAction 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 InteractiveAction 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 InteractiveAction 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 InteractiveAction withChannel(SlackChannel channel)
channel attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.channel - A new value for channelthis objectpublic final InteractiveAction 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)
InteractiveAction that have equal attribute values.public int hashCode()
actions, messageTs, attachmentId, appUnfurl, originalMessage, responseUrl, triggerId, type, callbackId, actionTs, token, team, channel, user.public String toString()
InteractiveAction with attribute values.public static InteractiveAction copyOf(InteractiveActionIF instance)
InteractiveActionIF 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 InteractiveAction.Builder builder()
InteractiveAction.Copyright © 2019. All rights reserved.