@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","BlockActionsIF"}) @Immutable public final class BlockActions extends Object implements BlockActionsIF
BlockActionsIF.
Use the builder to create immutable instances:
BlockActions.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
BlockActions.Builder
Builds instances of type
BlockActions. |
| Modifier and Type | Method and Description |
|---|---|
static BlockActions.Builder |
builder()
Creates a builder for
BlockActions. |
static BlockActions |
copyOf(BlockActionsIF instance)
Creates an immutable copy of a
BlockActionsIF value. |
boolean |
equals(Object another)
This instance is equal to all instances of
BlockActions that have equal attribute values. |
List<BlockElementAction> |
getElementActions() |
Optional<LiteMessage> |
getMessage() |
Optional<String> |
getResponseUrl() |
SlackTeam |
getTeam() |
String |
getToken() |
String |
getTriggerId() |
InteractiveCallbackType |
getType() |
SlackUserLite |
getUser() |
Optional<ViewResponseBase> |
getView() |
int |
hashCode()
Computes a hash code from attributes:
triggerId, responseUrl, message, view, elementActions, type, token, team, user. |
String |
toString()
Prints the immutable value
BlockActions with attribute values. |
BlockActions |
withElementActions(BlockElementAction... elements)
Copy the current immutable object with elements that replace the content of
elementActions. |
BlockActions |
withElementActions(Iterable<? extends BlockElementAction> elements)
Copy the current immutable object with elements that replace the content of
elementActions. |
BlockActions |
withMessage(LiteMessage value)
Copy the current immutable object by setting a present value for the optional
message attribute. |
BlockActions |
withMessage(Optional<LiteMessage> optional)
Copy the current immutable object by setting an optional value for the
message attribute. |
BlockActions |
withResponseUrl(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
responseUrl attribute. |
BlockActions |
withResponseUrl(String value)
Copy the current immutable object by setting a present value for the optional
responseUrl attribute. |
BlockActions |
withTeam(SlackTeam team)
Copy the current immutable object by setting a value for the
team attribute. |
BlockActions |
withToken(String token)
Copy the current immutable object by setting a value for the
token attribute. |
BlockActions |
withTriggerId(String triggerId)
Copy the current immutable object by setting a value for the
triggerId attribute. |
BlockActions |
withType(InteractiveCallbackType type)
Copy the current immutable object by setting a value for the
type attribute. |
BlockActions |
withUser(SlackUserLite user)
Copy the current immutable object by setting a value for the
user attribute. |
BlockActions |
withView(Optional<ViewResponseBase> optional)
Copy the current immutable object by setting an optional value for the
view attribute. |
BlockActions |
withView(ViewResponseBase value)
Copy the current immutable object by setting a present value for the optional
view attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetActionTs, getCallbackId, getChannelpublic String getTriggerId()
getTriggerId in interface BlockActionsIFtriggerId attributepublic Optional<String> getResponseUrl()
getResponseUrl in interface BlockActionsIFresponseUrl attributepublic Optional<LiteMessage> getMessage()
getMessage in interface BlockActionsIFmessage attributepublic Optional<ViewResponseBase> getView()
getView in interface BlockActionsIFview attributepublic List<BlockElementAction> getElementActions()
getElementActions in interface BlockActionsIFelementActions attributepublic InteractiveCallbackType getType()
getType in interface SlackInteractiveCallbacktype attributepublic String getToken()
getToken in interface SlackInteractiveCallbacktoken attributepublic SlackTeam getTeam()
getTeam in interface SlackInteractiveCallbackteam attributepublic SlackUserLite getUser()
getUser in interface SlackInteractiveCallbackuser attributepublic final BlockActions 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 BlockActions withResponseUrl(@Nullable String value)
responseUrl attribute.value - The value for responseUrl, null is accepted as java.util.Optional.empty()this objectpublic final BlockActions withResponseUrl(Optional<String> optional)
responseUrl attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for responseUrlthis objectpublic final BlockActions withMessage(@Nullable LiteMessage value)
message attribute.value - The value for message, null is accepted as java.util.Optional.empty()this objectpublic final BlockActions withMessage(Optional<LiteMessage> optional)
message 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 messagethis objectpublic final BlockActions withView(@Nullable ViewResponseBase value)
view attribute.value - The value for view, null is accepted as java.util.Optional.empty()this objectpublic final BlockActions withView(Optional<ViewResponseBase> optional)
view 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 viewthis objectpublic final BlockActions withElementActions(BlockElementAction... elements)
elementActions.elements - The elements to setthis objectpublic final BlockActions withElementActions(Iterable<? extends BlockElementAction> elements)
elementActions.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of elementActions elements to setthis objectpublic final BlockActions 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 BlockActions 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 BlockActions 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 BlockActions 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)
BlockActions that have equal attribute values.public int hashCode()
triggerId, responseUrl, message, view, elementActions, type, token, team, user.public String toString()
BlockActions with attribute values.public static BlockActions copyOf(BlockActionsIF instance)
BlockActionsIF 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 BlockActions.Builder builder()
BlockActions.Copyright © 2020. All rights reserved.