Class ValidationWarning
- java.lang.Object
-
- com.amazonaws.services.datapipeline.model.ValidationWarning
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class ValidationWarning extends Object implements Serializable, Cloneable
Defines a validation warning. Validation warnings do not prevent pipeline activation. The set of validation warnings that can be returned are defined by AWS Data Pipeline.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ValidationWarning()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationWarning
clone()
boolean
equals(Object obj)
String
getId()
The identifier of the object that contains the validation warning.List<String>
getWarnings()
A description of the validation warning.int
hashCode()
void
setId(String id)
The identifier of the object that contains the validation warning.void
setWarnings(Collection<String> warnings)
A description of the validation warning.String
toString()
Returns a string representation of this object; useful for testing and debugging.ValidationWarning
withId(String id)
The identifier of the object that contains the validation warning.ValidationWarning
withWarnings(String... warnings)
A description of the validation warning.ValidationWarning
withWarnings(Collection<String> warnings)
A description of the validation warning.
-
-
-
Method Detail
-
setId
public void setId(String id)
The identifier of the object that contains the validation warning.
- Parameters:
id
- The identifier of the object that contains the validation warning.
-
getId
public String getId()
The identifier of the object that contains the validation warning.
- Returns:
- The identifier of the object that contains the validation warning.
-
withId
public ValidationWarning withId(String id)
The identifier of the object that contains the validation warning.
- Parameters:
id
- The identifier of the object that contains the validation warning.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getWarnings
public List<String> getWarnings()
A description of the validation warning.
- Returns:
- A description of the validation warning.
-
setWarnings
public void setWarnings(Collection<String> warnings)
A description of the validation warning.
- Parameters:
warnings
- A description of the validation warning.
-
withWarnings
public ValidationWarning withWarnings(String... warnings)
A description of the validation warning.
NOTE: This method appends the values to the existing list (if any). Use
setWarnings(java.util.Collection)
orwithWarnings(java.util.Collection)
if you want to override the existing values.- Parameters:
warnings
- A description of the validation warning.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withWarnings
public ValidationWarning withWarnings(Collection<String> warnings)
A description of the validation warning.
- Parameters:
warnings
- A description of the validation warning.- 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 ValidationWarning clone()
-
-