java.lang.Object
com.hubspot.slack.client.models.dialog.form.InputError
All Implemented Interfaces:
InputErrorIF

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

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

  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface InputErrorIF
      Returns:
      The value of the name attribute
    • getError

      public String getError()
      Specified by:
      getError in interface InputErrorIF
      Returns:
      The value of the error attribute
    • withName

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

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

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

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

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

      public static InputError.Builder builder()
      Creates a builder for InputError.
       InputError.builder()
          .setName(String) // required name
          .setError(String) // required error
          .build();
       
      Returns:
      A new InputError builder