Class MessageAction
java.lang.Object
com.hubspot.slack.client.models.interaction.MessageAction
- All Implemented Interfaces:
MessageActionIF,SlackInteractiveCallback
@Generated(from="MessageActionIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class MessageAction
extends Object
implements MessageActionIF
Immutable implementation of
MessageActionIF.
Use the builder to create immutable instances:
MessageAction.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageAction.Builderbuilder()Creates a builder forMessageAction.static MessageActioncopyOf(MessageActionIF instance) Creates an immutable copy of aMessageActionIFvalue.booleanThis instance is equal to all instances ofMessageActionthat have equal attribute values.getTeam()getToken()getType()getUser()inthashCode()Computes a hash code from attributes:type,token,team,user,channel,actionTs,callbackId,triggerId,responseUrl,message.toString()Prints the immutable valueMessageActionwith attribute values.final MessageActionwithActionTs(String value) Copy the current immutable object by setting a value for theactionTsattribute.final MessageActionwithCallbackId(String value) Copy the current immutable object by setting a value for thecallbackIdattribute.final MessageActionwithChannel(SlackChannel value) Copy the current immutable object by setting a value for thechannelattribute.final MessageActionwithMessage(LiteMessage value) Copy the current immutable object by setting a value for themessageattribute.final MessageActionwithResponseUrl(String value) Copy the current immutable object by setting a value for theresponseUrlattribute.final MessageActionCopy the current immutable object by setting a value for theteamattribute.final MessageActionCopy the current immutable object by setting a value for thetokenattribute.final MessageActionwithTriggerId(String value) Copy the current immutable object by setting a value for thetriggerIdattribute.final MessageActionwithType(InteractiveCallbackType value) Copy the current immutable object by setting a value for thetypeattribute.final MessageActionwithUser(SlackUserLite value) Copy the current immutable object by setting a value for theuserattribute.
-
Method Details
-
getType
- Specified by:
getTypein interfaceSlackInteractiveCallback- Returns:
- The value of the
typeattribute
-
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
-
getChannel
- Specified by:
getChannelin interfaceSlackInteractiveCallback- Returns:
- The value of the
channelattribute
-
getActionTs
- Specified by:
getActionTsin interfaceMessageActionIF- Specified by:
getActionTsin interfaceSlackInteractiveCallback- Returns:
- The value of the
actionTsattribute
-
getCallbackId
- Specified by:
getCallbackIdin interfaceMessageActionIF- Specified by:
getCallbackIdin interfaceSlackInteractiveCallback- Returns:
- The value of the
callbackIdattribute
-
getTriggerId
- Specified by:
getTriggerIdin interfaceMessageActionIF- Returns:
- The value of the
triggerIdattribute
-
getResponseUrl
- Specified by:
getResponseUrlin interfaceMessageActionIF- Returns:
- The value of the
responseUrlattribute
-
getMessage
- Specified by:
getMessagein interfaceMessageActionIF- Returns:
- The value of the
messageattribute
-
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
-
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
-
withChannel
Copy the current immutable object by setting a value for thechannelattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for channel- 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
-
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
-
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
-
withResponseUrl
Copy the current immutable object by setting a value for theresponseUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for responseUrl- Returns:
- A modified copy or the
thisobject
-
withMessage
Copy the current immutable object by setting a value for themessageattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for message- Returns:
- A modified copy or the
thisobject
-
equals
This instance is equal to all instances ofMessageActionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,token,team,user,channel,actionTs,callbackId,triggerId,responseUrl,message. -
toString
Prints the immutable valueMessageActionwith attribute values. -
copyOf
Creates an immutable copy of aMessageActionIFvalue. 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 MessageAction instance
-
builder
Creates a builder forMessageAction.MessageAction.builder() .setType(com.hubspot.slack.client.models.interaction.InteractiveCallbackType) // requiredtype.setToken(String) // requiredtoken.setTeam(com.hubspot.slack.client.models.teams.SlackTeam) // requiredteam.setUser(com.hubspot.slack.client.models.users.SlackUserLite) // requireduser.setChannel(com.hubspot.slack.client.models.SlackChannel) // requiredchannel.setActionTs(String) // requiredactionTs.setCallbackId(String) // requiredcallbackId.setTriggerId(String) // requiredtriggerId.setResponseUrl(String) // requiredresponseUrl.setMessage(com.hubspot.slack.client.models.LiteMessage) // requiredmessage.build();- Returns:
- A new MessageAction builder
-