Class StateBlock
java.lang.Object
com.hubspot.slack.client.models.response.views.StateBlock
- All Implemented Interfaces:
StateBlockIF
@Generated(from="StateBlockIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class StateBlock
extends Object
implements StateBlockIF
Immutable implementation of
StateBlockIF.
Use the builder to create immutable instances:
StateBlock.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StateBlock.Builderbuilder()Creates a builder forStateBlock.static StateBlockcopyOf(StateBlockIF instance) Creates an immutable copy of aStateBlockIFvalue.booleanThis instance is equal to all instances ofStateBlockthat have equal attribute values.inthashCode()Computes a hash code from attributes:actions.toString()Prints the immutable valueStateBlockwith attribute values.final StateBlockwithActions(Map<String, ? extends StateAction> entries) Copy the current immutable object by replacing theactionsmap with the specified map.
-
Method Details
-
getActions
- Specified by:
getActionsin interfaceStateBlockIF- Returns:
- The value of the
actionsattribute
-
withActions
Copy the current immutable object by replacing theactionsmap with the specified map. Nulls are not permitted as keys or values. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
entries- The entries to replace the actions map- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofStateBlockthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:actions. -
toString
Prints the immutable valueStateBlockwith attribute values. -
copyOf
Creates an immutable copy of aStateBlockIFvalue. 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 StateBlock instance
-
builder
Creates a builder forStateBlock.StateBlock.builder() .putActions|putAllActions(String => StateAction) //actionsmappings .build();- Returns:
- A new StateBlock builder
-