Class ValidationError
- java.lang.Object
-
- com.amazonaws.services.datapipeline.model.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 Summary
Constructors Constructor Description ValidationError()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationError
clone()
boolean
equals(Object obj)
List<String>
getErrors()
A description of the validation error.String
getId()
The identifier of the object that contains the validation error.int
hashCode()
void
setErrors(Collection<String> errors)
A description of the validation error.void
setId(String id)
The identifier of the object that contains the validation error.String
toString()
Returns a string representation of this object; useful for testing and debugging.ValidationError
withErrors(String... errors)
A description of the validation error.ValidationError
withErrors(Collection<String> errors)
A description of the validation error.ValidationError
withId(String id)
The identifier of the object that contains the validation error.
-
-
-
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)
orwithErrors(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public ValidationError clone()
-
-