Class StateAction
java.lang.Object
com.hubspot.slack.client.models.response.views.StateAction
- All Implemented Interfaces:
StateActionIF
@Generated(from="StateActionIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class StateAction
extends Object
implements StateActionIF
Immutable implementation of
StateActionIF.
Use the builder to create immutable instances:
StateAction.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StateAction.Builderbuilder()Creates a builder forStateAction.static StateActioncopyOf(StateActionIF instance) Creates an immutable copy of aStateActionIFvalue.booleanThis instance is equal to all instances ofStateActionthat have equal attribute values.inthashCode()Computes a hash code from attributes:actionValues.toString()Prints the immutable valueStateActionwith attribute values.final StateActionwithActionValues(Map<String, ? extends StateActionValue> entries) Copy the current immutable object by replacing theactionValuesmap with the specified map.
-
Method Details
-
getActionValues
- Specified by:
getActionValuesin interfaceStateActionIF- Returns:
- The value of the
actionValuesattribute
-
withActionValues
Copy the current immutable object by replacing theactionValuesmap 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 actionValues map- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofStateActionthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:actionValues. -
toString
Prints the immutable valueStateActionwith attribute values. -
copyOf
Creates an immutable copy of aStateActionIFvalue. 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 StateAction instance
-
builder
Creates a builder forStateAction.StateAction.builder() .putActionValues|putAllActionValues(String => StateActionValue) //actionValuesmappings .build();- Returns:
- A new StateAction builder
-