Class ViewStateValuesBlock

java.lang.Object
com.hubspot.slack.client.models.interaction.ViewStateValuesBlock
All Implemented Interfaces:
ViewStateValuesBlockIF

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

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

  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface ViewStateValuesBlockIF
      Returns:
      The value of the type attribute
    • getValue

      public String getValue()
      Specified by:
      getValue in interface ViewStateValuesBlockIF
      Returns:
      The value of the value attribute
    • withType

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

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

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

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

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

      public static ViewStateValuesBlock.Builder builder()
      Creates a builder for ViewStateValuesBlock.
       ViewStateValuesBlock.builder()
          .setType(String) // required type
          .setValue(String) // required value
          .build();
       
      Returns:
      A new ViewStateValuesBlock builder