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 Details

    • from

      public final StateAction.Builder from(StateActionIF instance)
      Fill a builder with attribute values from the provided StateActionIF instance. 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:
      this builder for use in a chained invocation
    • putActionValues

      public final StateAction.Builder putActionValues(String key, StateActionValue value)
      Put one entry to the actionValues map.
      Parameters:
      key - The key in the actionValues map
      value - The associated value in the actionValues map
      Returns:
      this builder for use in a chained invocation
    • putActionValues

      public final StateAction.Builder putActionValues(Map.Entry<String,? extends StateActionValue> entry)
      Put one entry to the actionValues map. Nulls are not permitted
      Parameters:
      entry - The key and value entry
      Returns:
      this builder for use in a chained invocation
    • setActionValues

      public final StateAction.Builder setActionValues(Map<String,? extends StateActionValue> entries)
      Sets or replaces all mappings from the specified map as entries for the actionValues map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the actionValues map
      Returns:
      this builder for use in a chained invocation
    • putAllActionValues

      public final StateAction.Builder putAllActionValues(Map<String,? extends StateActionValue> entries)
      Put all mappings from the specified map as entries to actionValues map. Nulls are not permitted
      Parameters:
      entries - The entries that will be added to the actionValues map
      Returns:
      this builder for use in a chained invocation
    • build

      public StateAction build()
      Builds a new StateAction.
      Returns:
      An immutable instance of StateAction
      Throws:
      com.hubspot.immutables.validation.InvalidImmutableStateException - if any required attributes are missing