java.lang.Object
com.hubspot.slack.client.models.response.views.StateBlock
All Implemented Interfaces:
StateBlockIF

@Generated(from="StateBlockIF", generator="Immutables") @ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable public final class StateBlock extends Object implements StateBlockIF
Immutable implementation of StateBlockIF.

Use the builder to create immutable instances: StateBlock.builder().

  • Method Details

    • getActions

      public Map<String,StateAction> getActions()
      Specified by:
      getActions in interface StateBlockIF
      Returns:
      The value of the actions attribute
    • withActions

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

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

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

      public static StateBlock.Builder builder()
      Creates a builder for StateBlock.
       StateBlock.builder()
          .putActions|putAllActions(String => StateAction) // actions mappings
          .build();
       
      Returns:
      A new StateBlock builder