Class ValidationError

  • All Implemented Interfaces:
    Serializable, Cloneable

    public class ValidationError
    extends Object
    implements Serializable, Cloneable

    Defines a validation error. Validation errors prevent pipeline activation. The set of validation errors that can be returned are defined by AWS Data Pipeline.

    See Also:
    Serialized Form
    • Constructor Detail

      • ValidationError

        public ValidationError()
    • Method Detail

      • setId

        public void setId​(String id)

        The identifier of the object that contains the validation error.

        Parameters:
        id - The identifier of the object that contains the validation error.
      • getId

        public String getId()

        The identifier of the object that contains the validation error.

        Returns:
        The identifier of the object that contains the validation error.
      • withId

        public ValidationError withId​(String id)

        The identifier of the object that contains the validation error.

        Parameters:
        id - The identifier of the object that contains the validation error.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • getErrors

        public List<String> getErrors()

        A description of the validation error.

        Returns:
        A description of the validation error.
      • setErrors

        public void setErrors​(Collection<String> errors)

        A description of the validation error.

        Parameters:
        errors - A description of the validation error.
      • withErrors

        public ValidationError withErrors​(String... errors)

        A description of the validation error.

        NOTE: This method appends the values to the existing list (if any). Use setErrors(java.util.Collection) or withErrors(java.util.Collection) if you want to override the existing values.

        Parameters:
        errors - A description of the validation error.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • withErrors

        public ValidationError withErrors​(Collection<String> errors)

        A description of the validation error.

        Parameters:
        errors - A description of the validation error.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object