@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConditionalSpecification extends Object implements Serializable, Cloneable, StructuredPojo
Provides a list of conditional branches. Branches are evaluated in the order that they are entered in the list. The first branch with a condition that evaluates to true is executed. The last branch in the list is the default branch. The default branch should not have any condition expression. The default branch is executed if no other branch has a matching condition.
Constructor and Description |
---|
ConditionalSpecification() |
Modifier and Type | Method and Description |
---|---|
ConditionalSpecification |
clone() |
boolean |
equals(Object obj) |
Boolean |
getActive()
Determines whether a conditional branch is active.
|
List<ConditionalBranch> |
getConditionalBranches()
A list of conditional branches.
|
DefaultConditionalBranch |
getDefaultBranch()
The conditional branch that should be followed when the conditions for other branches are not satisfied.
|
int |
hashCode() |
Boolean |
isActive()
Determines whether a conditional branch is active.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setActive(Boolean active)
Determines whether a conditional branch is active.
|
void |
setConditionalBranches(Collection<ConditionalBranch> conditionalBranches)
A list of conditional branches.
|
void |
setDefaultBranch(DefaultConditionalBranch defaultBranch)
The conditional branch that should be followed when the conditions for other branches are not satisfied.
|
String |
toString()
Returns a string representation of this object.
|
ConditionalSpecification |
withActive(Boolean active)
Determines whether a conditional branch is active.
|
ConditionalSpecification |
withConditionalBranches(Collection<ConditionalBranch> conditionalBranches)
A list of conditional branches.
|
ConditionalSpecification |
withConditionalBranches(ConditionalBranch... conditionalBranches)
A list of conditional branches.
|
ConditionalSpecification |
withDefaultBranch(DefaultConditionalBranch defaultBranch)
The conditional branch that should be followed when the conditions for other branches are not satisfied.
|
public void setActive(Boolean active)
Determines whether a conditional branch is active. When active
is false, the conditions are not
evaluated.
active
- Determines whether a conditional branch is active. When active
is false, the conditions are
not evaluated.public Boolean getActive()
Determines whether a conditional branch is active. When active
is false, the conditions are not
evaluated.
active
is false, the conditions are
not evaluated.public ConditionalSpecification withActive(Boolean active)
Determines whether a conditional branch is active. When active
is false, the conditions are not
evaluated.
active
- Determines whether a conditional branch is active. When active
is false, the conditions are
not evaluated.public Boolean isActive()
Determines whether a conditional branch is active. When active
is false, the conditions are not
evaluated.
active
is false, the conditions are
not evaluated.public List<ConditionalBranch> getConditionalBranches()
A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
public void setConditionalBranches(Collection<ConditionalBranch> conditionalBranches)
A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
conditionalBranches
- A list of conditional branches. A conditional branch is made up of a condition, a response and a next
step. The response and next step are executed when the condition is true.public ConditionalSpecification withConditionalBranches(ConditionalBranch... conditionalBranches)
A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
NOTE: This method appends the values to the existing list (if any). Use
setConditionalBranches(java.util.Collection)
or withConditionalBranches(java.util.Collection)
if you want to override the existing values.
conditionalBranches
- A list of conditional branches. A conditional branch is made up of a condition, a response and a next
step. The response and next step are executed when the condition is true.public ConditionalSpecification withConditionalBranches(Collection<ConditionalBranch> conditionalBranches)
A list of conditional branches. A conditional branch is made up of a condition, a response and a next step. The response and next step are executed when the condition is true.
conditionalBranches
- A list of conditional branches. A conditional branch is made up of a condition, a response and a next
step. The response and next step are executed when the condition is true.public void setDefaultBranch(DefaultConditionalBranch defaultBranch)
The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.
defaultBranch
- The conditional branch that should be followed when the conditions for other branches are not satisfied. A
conditional branch is made up of a condition, a response and a next step.public DefaultConditionalBranch getDefaultBranch()
The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.
public ConditionalSpecification withDefaultBranch(DefaultConditionalBranch defaultBranch)
The conditional branch that should be followed when the conditions for other branches are not satisfied. A conditional branch is made up of a condition, a response and a next step.
defaultBranch
- The conditional branch that should be followed when the conditions for other branches are not satisfied. A
conditional branch is made up of a condition, a response and a next step.public String toString()
toString
in class Object
Object.toString()
public ConditionalSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.