Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.datapipeline.model
Class ValidationError

java.lang.Object
  extended by com.amazonaws.services.datapipeline.model.ValidationError
All Implemented Interfaces:
Serializable

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.

See Also:
Serialized Form

Constructor Summary
ValidationError()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationError

public ValidationError()
Method Detail

getId

public String getId()
The identifier of the object that contains the validation error.

Constraints:
Length: 1 - 1024
Pattern: [ -??-??-?\r\n\t]*

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

setId

public void setId(String id)
The identifier of the object that contains the validation error.

Constraints:
Length: 1 - 1024
Pattern: [ -??-??-?\r\n\t]*

Parameters:
id - 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.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Length: 1 - 1024
Pattern: [ -??-??-?\r\n\t]*

Parameters:
id - The identifier of the object that contains the validation error.
Returns:
A reference to this updated 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.

Returns a reference to this object so that method calls can be chained together.

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

withErrors

public ValidationError withErrors(Collection<String> errors)
A description of the validation error.

Returns a reference to this object so that method calls can be chained together.

Parameters:
errors - A description of the validation error.
Returns:
A reference to this updated 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

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.