public class ValidationError extends Object implements Serializable
Defines a validation error returned by PutPipelineDefinition or ValidatePipelineDefinition. Validation errors prevent pipeline activation. The set of validation errors that can be returned are defined by AWS Data Pipeline.
Constructor and Description |
---|
ValidationError() |
Modifier and Type | Method and Description |
---|---|
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(Collection<String> errors)
A description of the validation error.
|
ValidationError |
withErrors(String... errors)
A description of the validation error.
|
ValidationError |
withId(String id)
The identifier of the object that contains the validation error.
|
public String getId()
Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
public void setId(String id)
Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
id
- The identifier of the object that contains the validation error.public ValidationError withId(String id)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 1024
Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*
id
- The identifier of the object that contains the validation error.public List<String> getErrors()
public void setErrors(Collection<String> errors)
errors
- A description of the validation error.public ValidationError withErrors(String... errors)
Returns a reference to this object so that method calls can be chained together.
errors
- A description of the validation error.public ValidationError withErrors(Collection<String> errors)
Returns a reference to this object so that method calls can be chained together.
errors
- A description of the validation error.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.