Class StateActionValue

java.lang.Object
com.hubspot.slack.client.models.response.views.StateActionValue
All Implemented Interfaces:
StateActionValueIF

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

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

  • Method Details

    • getBlockElementType

      public String getBlockElementType()
      Specified by:
      getBlockElementType in interface StateActionValueIF
      Returns:
      The value of the blockElementType attribute
    • getBlockElementValue

      public Optional<Object> getBlockElementValue()
      Specified by:
      getBlockElementValue in interface StateActionValueIF
      Returns:
      The value of the blockElementValue attribute
    • withBlockElementType

      public final StateActionValue withBlockElementType(String value)
      Copy the current immutable object by setting a value for the blockElementType attribute. An equals check used to prevent copying of the same value by returning this.
      Parameters:
      value - A new value for blockElementType
      Returns:
      A modified copy or the this object
    • withBlockElementValue

      public final StateActionValue withBlockElementValue(@Nullable Object value)
      Copy the current immutable object by setting a present value for the optional blockElementValue attribute.
      Parameters:
      value - The value for blockElementValue, null is accepted as java.util.Optional.empty()
      Returns:
      A modified copy or this if not changed
    • withBlockElementValue

      public final StateActionValue withBlockElementValue(Optional<? extends Object> optional)
      Copy the current immutable object by setting an optional value for the blockElementValue attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
      Parameters:
      optional - An optional value for blockElementValue
      Returns:
      A modified copy or this if not changed
    • equals

      public boolean equals(@Nullable Object another)
      This instance is equal to all instances of StateActionValue 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: blockElementType, blockElementValue.
      Overrides:
      hashCode in class Object
      Returns:
      hashCode value
    • toString

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

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

      public static StateActionValue.Builder builder()
      Creates a builder for StateActionValue.
       StateActionValue.builder()
          .setBlockElementType(String) // required blockElementType
          .setBlockElementValue(Optional<Object>) // optional blockElementValue
          .build();
       
      Returns:
      A new StateActionValue builder