Class WorkObjectActionBlock
java.lang.Object
com.hubspot.slack.client.methods.params.chat.workobject.actions.WorkObjectActionBlock
- All Implemented Interfaces:
WorkObjectActionBlockIF
@Generated(from="WorkObjectActionBlockIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class WorkObjectActionBlock
extends Object
implements WorkObjectActionBlockIF
Immutable implementation of
WorkObjectActionBlockIF.
Use the builder to create immutable instances:
WorkObjectActionBlock.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeWorkObjectActionBlock. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forWorkObjectActionBlock.static WorkObjectActionBlockcopyOf(WorkObjectActionBlockIF instance) Creates an immutable copy of aWorkObjectActionBlockIFvalue.booleanThis instance is equal to all instances ofWorkObjectActionBlockthat have equal attribute values.inthashCode()Computes a hash code from attributes:primaryActions,overflowActions.toString()Prints the immutable valueWorkObjectActionBlockwith attribute values.final WorkObjectActionBlockwithOverflowActions(WorkObjectAction... elements) Copy the current immutable object with elements that replace the content ofoverflowActions.final WorkObjectActionBlockwithOverflowActions(Iterable<? extends WorkObjectAction> elements) Copy the current immutable object with elements that replace the content ofoverflowActions.final WorkObjectActionBlockwithPrimaryActions(WorkObjectAction... elements) Copy the current immutable object with elements that replace the content ofprimaryActions.final WorkObjectActionBlockwithPrimaryActions(Iterable<? extends WorkObjectAction> elements) Copy the current immutable object with elements that replace the content ofprimaryActions.
-
Method Details
-
getPrimaryActions
- Specified by:
getPrimaryActionsin interfaceWorkObjectActionBlockIF- Returns:
- The value of the
primaryActionsattribute
-
getOverflowActions
- Specified by:
getOverflowActionsin interfaceWorkObjectActionBlockIF- Returns:
- The value of the
overflowActionsattribute
-
withPrimaryActions
Copy the current immutable object with elements that replace the content ofprimaryActions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withPrimaryActions
public final WorkObjectActionBlock withPrimaryActions(Iterable<? extends WorkObjectAction> elements) Copy the current immutable object with elements that replace the content ofprimaryActions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of primaryActions elements to set- Returns:
- A modified copy or
thisif not changed
-
withOverflowActions
Copy the current immutable object with elements that replace the content ofoverflowActions.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withOverflowActions
public final WorkObjectActionBlock withOverflowActions(Iterable<? extends WorkObjectAction> elements) Copy the current immutable object with elements that replace the content ofoverflowActions. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of overflowActions elements to set- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofWorkObjectActionBlockthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:primaryActions,overflowActions. -
toString
Prints the immutable valueWorkObjectActionBlockwith attribute values. -
copyOf
Creates an immutable copy of aWorkObjectActionBlockIFvalue. 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 WorkObjectActionBlock instance
-
builder
Creates a builder forWorkObjectActionBlock.WorkObjectActionBlock.builder() .addPrimaryActions|addAllPrimaryActions(WorkObjectAction) //primaryActionselements .addOverflowActions|addAllOverflowActions(WorkObjectAction) //overflowActionselements .build();- Returns:
- A new WorkObjectActionBlock builder
-