@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","MessageActionIF"}) @Immutable public final class MessageAction extends Object implements MessageActionIF
MessageActionIF.
Use the builder to create immutable instances:
MessageAction.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
MessageAction.Builder
Builds instances of type
MessageAction. |
| Modifier and Type | Method and Description |
|---|---|
static MessageAction.Builder |
builder()
Creates a builder for
MessageAction. |
static MessageAction |
copyOf(MessageActionIF instance)
Creates an immutable copy of a
MessageActionIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
MessageAction that have equal attribute values. |
String |
getActionTs() |
String |
getCallbackId() |
SlackChannel |
getChannel() |
LiteMessage |
getMessage() |
String |
getResponseUrl() |
SlackTeam |
getTeam() |
String |
getToken() |
String |
getTriggerId() |
InteractiveCallbackType |
getType() |
SlackUserLite |
getUser() |
int |
hashCode()
Computes a hash code from attributes:
triggerId, responseUrl, message, type, callbackId, actionTs, token, team, channel, user. |
String |
toString()
Prints the immutable value
MessageAction with attribute values. |
MessageAction |
withActionTs(String actionTs)
Copy the current immutable object by setting a value for the
actionTs attribute. |
MessageAction |
withCallbackId(String callbackId)
Copy the current immutable object by setting a value for the
callbackId attribute. |
MessageAction |
withChannel(SlackChannel channel)
Copy the current immutable object by setting a value for the
channel attribute. |
MessageAction |
withMessage(LiteMessage message)
Copy the current immutable object by setting a value for the
message attribute. |
MessageAction |
withResponseUrl(String responseUrl)
Copy the current immutable object by setting a value for the
responseUrl attribute. |
MessageAction |
withTeam(SlackTeam team)
Copy the current immutable object by setting a value for the
team attribute. |
MessageAction |
withToken(String token)
Copy the current immutable object by setting a value for the
token attribute. |
MessageAction |
withTriggerId(String triggerId)
Copy the current immutable object by setting a value for the
triggerId attribute. |
MessageAction |
withType(InteractiveCallbackType type)
Copy the current immutable object by setting a value for the
type attribute. |
MessageAction |
withUser(SlackUserLite user)
Copy the current immutable object by setting a value for the
user attribute. |
public String getTriggerId()
getTriggerId in interface MessageActionIFtriggerId attributepublic String getResponseUrl()
getResponseUrl in interface MessageActionIFresponseUrl attributepublic LiteMessage getMessage()
getMessage in interface MessageActionIFmessage 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 MessageAction 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 MessageAction 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 MessageAction withMessage(LiteMessage message)
message attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.message - A new value for messagethis objectpublic final MessageAction 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 MessageAction 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 MessageAction 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 MessageAction 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 MessageAction 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 MessageAction 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 MessageAction 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)
MessageAction that have equal attribute values.public int hashCode()
triggerId, responseUrl, message, type, callbackId, actionTs, token, team, channel, user.public String toString()
MessageAction with attribute values.public static MessageAction copyOf(MessageActionIF instance)
MessageActionIF 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 MessageAction.Builder builder()
MessageAction.Copyright © 2019. All rights reserved.