Class StateValuesPayload
java.lang.Object
com.hubspot.slack.client.models.interaction.StateValuesPayload
- All Implemented Interfaces:
StateValuesPayloadIF
@Generated(from="StateValuesPayloadIF",
generator="Immutables")
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class StateValuesPayload
extends Object
implements StateValuesPayloadIF
Immutable implementation of
StateValuesPayloadIF.
Use the builder to create immutable instances:
StateValuesPayload.builder().
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic StateValuesPayload.Builderbuilder()Creates a builder forStateValuesPayload.static StateValuesPayloadcopyOf(StateValuesPayloadIF instance) Creates an immutable copy of aStateValuesPayloadIFvalue.booleanThis instance is equal to all instances ofStateValuesPayloadthat have equal attribute values.inthashCode()Computes a hash code from attributes:blockIdToActionIdToValues.toString()Prints the immutable valueStateValuesPayloadwith attribute values.final StateValuesPayloadCopy the current immutable object by replacing theblockIdToActionIdToValuesmap with the specified map.
-
Method Details
-
getBlockIdToActionIdToValues
- Specified by:
getBlockIdToActionIdToValuesin interfaceStateValuesPayloadIF- Returns:
- The value of the
blockIdToActionIdToValuesattribute
-
withBlockIdToActionIdToValues
public final StateValuesPayload withBlockIdToActionIdToValues(Map<String, ? extends Map<String, ViewInput>> entries) Copy the current immutable object by replacing theblockIdToActionIdToValuesmap 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 blockIdToActionIdToValues map- Returns:
- A modified copy or
thisif not changed
-
equals
This instance is equal to all instances ofStateValuesPayloadthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:blockIdToActionIdToValues. -
toString
Prints the immutable valueStateValuesPayloadwith attribute values. -
copyOf
Creates an immutable copy of aStateValuesPayloadIFvalue. 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 StateValuesPayload instance
-
builder
Creates a builder forStateValuesPayload.StateValuesPayload.builder() .putBlockIdToActionIdToValues|putAllBlockIdToActionIdToValues(String => Map<String, com.hubspot.slack.client.models.interaction.views.ViewInput>) //blockIdToActionIdToValuesmappings .build();- Returns:
- A new StateValuesPayload builder
-