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().

  • Method Details

    • getActionValues

      public Map<String,StateActionValue> getActionValues()
      Specified by:
      getActionValues in interface StateActionIF
      Returns:
      The value of the actionValues attribute
    • withActionValues

      public final StateAction withActionValues(Map<String,? extends StateActionValue> entries)
      Copy the current immutable object by replacing the actionValues map 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 returning this.
      Parameters:
      entries - The entries to replace the actionValues map
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of StateAction that have equal attribute values.
      Overrides:
      equals in class Object
      Returns:
      true if this is equal to another instance
    • hashCode

      public int hashCode()
      Computes a hash code from attributes: actionValues.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

      public String toString()
      Prints the immutable value StateAction with attribute values.
      Overrides:
      toString in class Object
      Returns:
      A string representation of the value
    • copyOf

      public static StateAction copyOf(StateActionIF instance)
      Creates an immutable copy of a StateActionIF value. 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

      public static StateAction.Builder builder()
      Creates a builder for StateAction.
       StateAction.builder()
          .putActionValues|putAllActionValues(String => StateActionValue) // actionValues mappings
          .build();
       
      Returns:
      A new StateAction builder