Class InputErrors

java.lang.Object
com.hubspot.slack.client.models.dialog.form.InputErrors
All Implemented Interfaces:
InputErrorsIF

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

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

  • Method Details

    • getErrors

      public List<InputError> getErrors()
      Specified by:
      getErrors in interface InputErrorsIF
      Returns:
      The value of the errors attribute
    • withErrors

      public final InputErrors withErrors(InputError... elements)
      Copy the current immutable object with elements that replace the content of errors.
      Parameters:
      elements - The elements to set
      Returns:
      A modified copy of this object
    • withErrors

      public final InputErrors withErrors(Iterable<? extends InputError> elements)
      Copy the current immutable object with elements that replace the content of errors. A shallow reference equality check is used to prevent copying of the same value by returning this.
      Parameters:
      elements - An iterable of errors elements to set
      Returns:
      A modified copy or this if not changed
    • equals

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

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

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

      public static InputErrors.Builder builder()
      Creates a builder for InputErrors.
       InputErrors.builder()
          .addErrors|addAllErrors(InputError) // errors elements
          .build();
       
      Returns:
      A new InputErrors builder