@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Condition extends Object implements Serializable, Cloneable, StructuredPojo
Specifies the conditions to evaluate for an activity in a journey, and how to evaluate those conditions.
Constructor and Description |
---|
Condition() |
Modifier and Type | Method and Description |
---|---|
Condition |
clone() |
boolean |
equals(Object obj) |
List<SimpleCondition> |
getConditions()
The conditions to evaluate for the activity.
|
String |
getOperator()
Specifies how to handle multiple conditions for the activity.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setConditions(Collection<SimpleCondition> conditions)
The conditions to evaluate for the activity.
|
void |
setOperator(String operator)
Specifies how to handle multiple conditions for the activity.
|
String |
toString()
Returns a string representation of this object.
|
Condition |
withConditions(Collection<SimpleCondition> conditions)
The conditions to evaluate for the activity.
|
Condition |
withConditions(SimpleCondition... conditions)
The conditions to evaluate for the activity.
|
Condition |
withOperator(Operator operator)
Specifies how to handle multiple conditions for the activity.
|
Condition |
withOperator(String operator)
Specifies how to handle multiple conditions for the activity.
|
public List<SimpleCondition> getConditions()
The conditions to evaluate for the activity.
public void setConditions(Collection<SimpleCondition> conditions)
The conditions to evaluate for the activity.
conditions
- The conditions to evaluate for the activity.public Condition withConditions(SimpleCondition... conditions)
The conditions to evaluate for the activity.
NOTE: This method appends the values to the existing list (if any). Use
setConditions(java.util.Collection)
or withConditions(java.util.Collection)
if you want to
override the existing values.
conditions
- The conditions to evaluate for the activity.public Condition withConditions(Collection<SimpleCondition> conditions)
The conditions to evaluate for the activity.
conditions
- The conditions to evaluate for the activity.public void setOperator(String operator)
Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions for an activity, whether both or only one of the conditions must be met for the activity to be performed.
operator
- Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions
for an activity, whether both or only one of the conditions must be met for the activity to be performed.Operator
public String getOperator()
Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions for an activity, whether both or only one of the conditions must be met for the activity to be performed.
Operator
public Condition withOperator(String operator)
Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions for an activity, whether both or only one of the conditions must be met for the activity to be performed.
operator
- Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions
for an activity, whether both or only one of the conditions must be met for the activity to be performed.Operator
public Condition withOperator(Operator operator)
Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions for an activity, whether both or only one of the conditions must be met for the activity to be performed.
operator
- Specifies how to handle multiple conditions for the activity. For example, if you specify two conditions
for an activity, whether both or only one of the conditions must be met for the activity to be performed.Operator
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall
in interface StructuredPojo
Copyright © 2021. All rights reserved.