Class StateAction.Builder
java.lang.Object
com.hubspot.slack.client.models.response.views.StateAction.Builder
- Enclosing class:
StateAction
@Generated(from="StateActionIF",
generator="Immutables")
@NotThreadSafe
public static final class StateAction.Builder
extends Object
Builds instances of type
StateAction.
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 newStateAction.final StateAction.Builderfrom(StateActionIF instance) Fill a builder with attribute values from the providedStateActionIFinstance.final StateAction.BuilderputActionValues(String key, StateActionValue value) Put one entry to theactionValuesmap.final StateAction.BuilderputActionValues(Map.Entry<String, ? extends StateActionValue> entry) Put one entry to theactionValuesmap.final StateAction.BuilderputAllActionValues(Map<String, ? extends StateActionValue> entries) Put all mappings from the specified map as entries toactionValuesmap.final StateAction.BuildersetActionValues(Map<String, ? extends StateActionValue> entries) Sets or replaces all mappings from the specified map as entries for theactionValuesmap.
-
Method Details
-
from
Fill a builder with attribute values from the providedStateActionIFinstance. 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
-
putActionValues
Put one entry to theactionValuesmap.- Parameters:
key- The key in the actionValues mapvalue- The associated value in the actionValues map- Returns:
thisbuilder for use in a chained invocation
-
putActionValues
public final StateAction.Builder putActionValues(Map.Entry<String, ? extends StateActionValue> entry) Put one entry to theactionValuesmap. Nulls are not permitted- Parameters:
entry- The key and value entry- Returns:
thisbuilder for use in a chained invocation
-
setActionValues
Sets or replaces all mappings from the specified map as entries for theactionValuesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the actionValues map- Returns:
thisbuilder for use in a chained invocation
-
putAllActionValues
Put all mappings from the specified map as entries toactionValuesmap. Nulls are not permitted- Parameters:
entries- The entries that will be added to the actionValues map- Returns:
thisbuilder for use in a chained invocation
-
build
Builds a newStateAction.- Returns:
- An immutable instance of StateAction
- Throws:
com.hubspot.immutables.validation.InvalidImmutableStateException- if any required attributes are missing
-