@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Condition extends Object implements Serializable, Cloneable, StructuredPojo
The condition for the stage. A condition is made up of the rules and the result for the condition.
| Constructor and Description | 
|---|
Condition()  | 
| Modifier and Type | Method and Description | 
|---|---|
Condition | 
clone()  | 
boolean | 
equals(Object obj)  | 
String | 
getResult()
 The action to be done when the condition is met. 
 | 
List<RuleDeclaration> | 
getRules()
 The rules that make up the condition. 
 | 
int | 
hashCode()  | 
void | 
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given  
ProtocolMarshaller. | 
void | 
setResult(String result)
 The action to be done when the condition is met. 
 | 
void | 
setRules(Collection<RuleDeclaration> rules)
 The rules that make up the condition. 
 | 
String | 
toString()
Returns a string representation of this object. 
 | 
Condition | 
withResult(Result result)
 The action to be done when the condition is met. 
 | 
Condition | 
withResult(String result)
 The action to be done when the condition is met. 
 | 
Condition | 
withRules(Collection<RuleDeclaration> rules)
 The rules that make up the condition. 
 | 
Condition | 
withRules(RuleDeclaration... rules)
 The rules that make up the condition. 
 | 
public void setResult(String result)
The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
result - The action to be done when the condition is met. For example, rolling back an execution for a failure
        condition.Resultpublic String getResult()
The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
Resultpublic Condition withResult(String result)
The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
result - The action to be done when the condition is met. For example, rolling back an execution for a failure
        condition.Resultpublic Condition withResult(Result result)
The action to be done when the condition is met. For example, rolling back an execution for a failure condition.
result - The action to be done when the condition is met. For example, rolling back an execution for a failure
        condition.Resultpublic List<RuleDeclaration> getRules()
The rules that make up the condition.
public void setRules(Collection<RuleDeclaration> rules)
The rules that make up the condition.
rules - The rules that make up the condition.public Condition withRules(RuleDeclaration... rules)
The rules that make up the condition.
 NOTE: This method appends the values to the existing list (if any). Use
 setRules(java.util.Collection) or withRules(java.util.Collection) if you want to override the
 existing values.
 
rules - The rules that make up the condition.public Condition withRules(Collection<RuleDeclaration> rules)
The rules that make up the condition.
rules - The rules that make up the condition.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.