Class StateValuesPayload.Builder
java.lang.Object
com.hubspot.slack.client.models.interaction.StateValuesPayload.Builder
- Enclosing class:
StateValuesPayload
@Generated(from="StateValuesPayloadIF",
generator="Immutables")
@NotThreadSafe
public static final class StateValuesPayload.Builder
extends Object
Builds instances of type
StateValuesPayload.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newStateValuesPayload.from(StateValuesPayloadIF instance) Fill a builder with attribute values from the providedStateValuesPayloadIFinstance.Put all mappings from the specified map as entries toblockIdToActionIdToValuesmap.putBlockIdToActionIdToValues(String key, Map<String, ViewInput> value) Put one entry to theblockIdToActionIdToValuesmap.Put one entry to theblockIdToActionIdToValuesmap.Sets or replaces all mappings from the specified map as entries for theblockIdToActionIdToValuesmap.
-
Method Details
-
from
Fill a builder with attribute values from the providedStateValuesPayloadIFinstance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.- Parameters:
instance- The instance from which to copy values- Returns:
thisbuilder for use in a chained invocation
-
putBlockIdToActionIdToValues
public final StateValuesPayload.Builder putBlockIdToActionIdToValues(String key, Map<String, ViewInput> value) Put one entry to theblockIdToActionIdToValuesmap.- Parameters:
key- The key in the blockIdToActionIdToValues mapvalue- The associated value in the blockIdToActionIdToValues map- Returns:
thisbuilder for use in a chained invocation
-
putBlockIdToActionIdToValues
public final StateValuesPayload.Builder putBlockIdToActionIdToValues(Map.Entry<String, ? extends Map<String, ViewInput>> entry) Put one entry to theblockIdToActionIdToValuesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
setBlockIdToActionIdToValues
public final StateValuesPayload.Builder setBlockIdToActionIdToValues(Map<String, ? extends Map<String, ViewInput>> entries) Sets or replaces all mappings from the specified map as entries for theblockIdToActionIdToValuesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the blockIdToActionIdToValues map- Returns:
thisbuilder for use in a chained invocation
-
putAllBlockIdToActionIdToValues
public final StateValuesPayload.Builder putAllBlockIdToActionIdToValues(Map<String, ? extends Map<String, ViewInput>> entries) Put all mappings from the specified map as entries toblockIdToActionIdToValuesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the blockIdToActionIdToValues map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newStateValuesPayload.- Returns:
- An immutable instance of StateValuesPayload
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-