@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Predicate extends Object implements Serializable, Cloneable, StructuredPojo
Defines the predicate of the trigger, which determines when it fires.
| Constructor and Description |
|---|
Predicate() |
| Modifier and Type | Method and Description |
|---|---|
Predicate |
clone() |
boolean |
equals(Object obj) |
List<Condition> |
getConditions()
A list of the conditions that determine when the trigger will fire.
|
String |
getLogical()
An optional field if only one condition is listed.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setConditions(Collection<Condition> conditions)
A list of the conditions that determine when the trigger will fire.
|
void |
setLogical(String logical)
An optional field if only one condition is listed.
|
String |
toString()
Returns a string representation of this object.
|
Predicate |
withConditions(Collection<Condition> conditions)
A list of the conditions that determine when the trigger will fire.
|
Predicate |
withConditions(Condition... conditions)
A list of the conditions that determine when the trigger will fire.
|
Predicate |
withLogical(Logical logical)
An optional field if only one condition is listed.
|
Predicate |
withLogical(String logical)
An optional field if only one condition is listed.
|
public void setLogical(String logical)
An optional field if only one condition is listed. If multiple conditions are listed, then this field is required.
logical - An optional field if only one condition is listed. If multiple conditions are listed, then this field is
required.Logicalpublic String getLogical()
An optional field if only one condition is listed. If multiple conditions are listed, then this field is required.
Logicalpublic Predicate withLogical(String logical)
An optional field if only one condition is listed. If multiple conditions are listed, then this field is required.
logical - An optional field if only one condition is listed. If multiple conditions are listed, then this field is
required.Logicalpublic Predicate withLogical(Logical logical)
An optional field if only one condition is listed. If multiple conditions are listed, then this field is required.
logical - An optional field if only one condition is listed. If multiple conditions are listed, then this field is
required.Logicalpublic List<Condition> getConditions()
A list of the conditions that determine when the trigger will fire.
public void setConditions(Collection<Condition> conditions)
A list of the conditions that determine when the trigger will fire.
conditions - A list of the conditions that determine when the trigger will fire.public Predicate withConditions(Condition... conditions)
A list of the conditions that determine when the trigger will fire.
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 - A list of the conditions that determine when the trigger will fire.public Predicate withConditions(Collection<Condition> conditions)
A list of the conditions that determine when the trigger will fire.
conditions - A list of the conditions that determine when the trigger will fire.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.