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

  • Method Details

    • getBlockIdToActionIdToValues

      public Map<String,Map<String,ViewInput>> getBlockIdToActionIdToValues()
      Specified by:
      getBlockIdToActionIdToValues in interface StateValuesPayloadIF
      Returns:
      The value of the blockIdToActionIdToValues attribute
    • withBlockIdToActionIdToValues

      public final StateValuesPayload withBlockIdToActionIdToValues(Map<String,? extends Map<String,ViewInput>> entries)
      Copy the current immutable object by replacing the blockIdToActionIdToValues 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 blockIdToActionIdToValues 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 StateValuesPayload 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: blockIdToActionIdToValues.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

      public static StateValuesPayload copyOf(StateValuesPayloadIF instance)
      Creates an immutable copy of a StateValuesPayloadIF 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 StateValuesPayload instance
    • builder

      public static StateValuesPayload.Builder builder()
      Creates a builder for StateValuesPayload.
       StateValuesPayload.builder()
          .putBlockIdToActionIdToValues|putAllBlockIdToActionIdToValues(String => Map<String, com.hubspot.slack.client.models.interaction.views.ViewInput>) // blockIdToActionIdToValues mappings
          .build();
       
      Returns:
      A new StateValuesPayload builder