Class BlockActions
java.lang.Object
com.hubspot.slack.client.models.interaction.BlockActions
- All Implemented Interfaces:
BlockActionsIF,SlackInteractiveCallback
@Generated(from="BlockActionsIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class BlockActions
extends Object
implements BlockActionsIF
Immutable implementation of
BlockActionsIF.
Use the builder to create immutable instances:
BlockActions.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic BlockActions.Builderbuilder()Creates a builder forBlockActions.static BlockActionscopyOf(BlockActionsIF instance) Creates an immutable copy of aBlockActionsIFvalue.booleanThis instance is equal to all instances ofBlockActionsthat have equal attribute values.getState()getTeam()getToken()getType()getUser()getView()inthashCode()Computes a hash code from attributes:type,token,team,user,triggerId,responseUrl,message,view,elementActions,state,container.toString()Prints the immutable valueBlockActionswith attribute values.final BlockActionswithContainer(Container value) Copy the current immutable object by setting a present value for the optionalcontainerattribute.final BlockActionswithContainer(Optional<? extends Container> optional) Copy the current immutable object by setting an optional value for thecontainerattribute.final BlockActionswithElementActions(BlockElementAction... elements) Copy the current immutable object with elements that replace the content ofelementActions.final BlockActionswithElementActions(Iterable<? extends BlockElementAction> elements) Copy the current immutable object with elements that replace the content ofelementActions.final BlockActionswithMessage(LiteMessage value) Copy the current immutable object by setting a present value for the optionalmessageattribute.final BlockActionswithMessage(Optional<? extends LiteMessage> optional) Copy the current immutable object by setting an optional value for themessageattribute.final BlockActionswithResponseUrl(String value) Copy the current immutable object by setting a present value for the optionalresponseUrlattribute.final BlockActionswithResponseUrl(Optional<String> optional) Copy the current immutable object by setting an optional value for theresponseUrlattribute.final BlockActionswithState(StateValuesPayload value) Copy the current immutable object by setting a present value for the optionalstateattribute.final BlockActionswithState(Optional<? extends StateValuesPayload> optional) Copy the current immutable object by setting an optional value for thestateattribute.final BlockActionsCopy the current immutable object by setting a value for theteamattribute.final BlockActionsCopy the current immutable object by setting a value for thetokenattribute.final BlockActionswithTriggerId(String value) Copy the current immutable object by setting a value for thetriggerIdattribute.final BlockActionswithType(InteractiveCallbackType value) Copy the current immutable object by setting a value for thetypeattribute.final BlockActionswithUser(SlackUserLite value) Copy the current immutable object by setting a value for theuserattribute.final BlockActionswithView(ViewResponseBase value) Copy the current immutable object by setting a present value for the optionalviewattribute.final BlockActionswithView(Optional<? extends ViewResponseBase> optional) Copy the current immutable object by setting an optional value for theviewattribute.Methods inherited from interface com.hubspot.slack.client.models.interaction.BlockActionsIF
getActionTs, getCallbackId, getChannel
-
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
-
getTriggerId
- Specified by:
getTriggerIdin interfaceBlockActionsIF- Returns:
- The value of the
triggerIdattribute
-
getResponseUrl
- Specified by:
getResponseUrlin interfaceBlockActionsIF- Returns:
- The value of the
responseUrlattribute
-
getMessage
- Specified by:
getMessagein interfaceBlockActionsIF- Returns:
- The value of the
messageattribute
-
getView
- Specified by:
getViewin interfaceBlockActionsIF- Returns:
- The value of the
viewattribute
-
getElementActions
- Specified by:
getElementActionsin interfaceBlockActionsIF- Returns:
- The value of the
elementActionsattribute
-
getState
- Specified by:
getStatein interfaceBlockActionsIF- Returns:
- The value of the
stateattribute
-
getContainer
- Specified by:
getContainerin interfaceBlockActionsIF- Returns:
- The value of the
containerattribute
-
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
-
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 present value for the optionalresponseUrlattribute.- Parameters:
value- The value for responseUrl,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withResponseUrl
Copy the current immutable object by setting an optional value for theresponseUrlattribute. An equality check is used on inner value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for responseUrl- Returns:
- A modified copy or
thisif not changed
-
withMessage
Copy the current immutable object by setting a present value for the optionalmessageattribute.- Parameters:
value- The value for message,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withMessage
Copy the current immutable object by setting an optional value for themessageattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for message- Returns:
- A modified copy or
thisif not changed
-
withView
Copy the current immutable object by setting a present value for the optionalviewattribute.- Parameters:
value- The value for view,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withView
Copy the current immutable object by setting an optional value for theviewattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for view- Returns:
- A modified copy or
thisif not changed
-
withElementActions
Copy the current immutable object with elements that replace the content ofelementActions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withElementActions
Copy the current immutable object with elements that replace the content ofelementActions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of elementActions elements to set- Returns:
- A modified copy or
thisif not changed
-
withState
Copy the current immutable object by setting a present value for the optionalstateattribute.- Parameters:
value- The value for state,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withState
Copy the current immutable object by setting an optional value for thestateattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for state- Returns:
- A modified copy or
thisif not changed
-
withContainer
Copy the current immutable object by setting a present value for the optionalcontainerattribute.- Parameters:
value- The value for container,nullis accepted asjava.util.Optional.empty()- Returns:
- A modified copy or
thisif not changed
-
withContainer
Copy the current immutable object by setting an optional value for thecontainerattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- An optional value for container- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofBlockActionsthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:type,token,team,user,triggerId,responseUrl,message,view,elementActions,state,container. -
toString
Prints the immutable valueBlockActionswith attribute values. -
copyOf
Creates an immutable copy of aBlockActionsIFvalue. 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 BlockActions instance
-
builder
Creates a builder forBlockActions.BlockActions.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.setTriggerId(String) // requiredtriggerId.setResponseUrl(Optional<String>) // optionalresponseUrl.setMessage(Optional<com.hubspot.slack.client.models.LiteMessage>) // optionalmessage.setView(Optional<com.hubspot.slack.client.models.response.views.ViewResponseBase>) // optionalview.addElementActions|addAllElementActions(BlockElementAction) //elementActionselements .setState(Optional<StateValuesPayload>) // optionalstate.setContainer(Optional<com.hubspot.slack.client.models.interaction.Container>) // optionalcontainer.build();- Returns:
- A new BlockActions builder
-