public class ValidationError
extends java.lang.Object
implements java.io.Serializable, java.lang.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.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<java.lang.String> |
errors
A description of the validation error.
|
private java.lang.String |
id
The identifier of the object that contains the validation error.
|
Constructor and Description |
---|
ValidationError() |
Modifier and Type | Method and Description |
---|---|
ValidationError |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<java.lang.String> |
getErrors()
A description of the validation error.
|
java.lang.String |
getId()
The identifier of the object that contains the validation error.
|
int |
hashCode() |
void |
setErrors(java.util.Collection<java.lang.String> errors)
A description of the validation error.
|
void |
setId(java.lang.String id)
The identifier of the object that contains the validation error.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
ValidationError |
withErrors(java.util.Collection<java.lang.String> errors)
A description of the validation error.
|
ValidationError |
withErrors(java.lang.String... errors)
A description of the validation error.
|
ValidationError |
withId(java.lang.String id)
The identifier of the object that contains the validation error.
|
private java.lang.String id
The identifier of the object that contains the validation error.
private SdkInternalList<java.lang.String> errors
A description of the validation error.
public void setId(java.lang.String id)
The identifier of the object that contains the validation error.
id
- The identifier of the object that contains the validation error.public java.lang.String getId()
The identifier of the object that contains the validation error.
public ValidationError withId(java.lang.String id)
The identifier of the object that contains the validation error.
id
- The identifier of the object that contains the validation error.public java.util.List<java.lang.String> getErrors()
A description of the validation error.
public void setErrors(java.util.Collection<java.lang.String> errors)
A description of the validation error.
errors
- A description of the validation error.public ValidationError withErrors(java.lang.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.
errors
- A description of the validation error.public ValidationError withErrors(java.util.Collection<java.lang.String> errors)
A description of the validation error.
errors
- A description of the validation error.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public ValidationError clone()
clone
in class java.lang.Object