@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Predicate extends Object implements Serializable, Cloneable, StructuredPojo
Stores information for generating Amplify DataStore queries. Use a Predicate
to retrieve a subset of the
data in a collection.
Constructor and Description |
---|
Predicate() |
Modifier and Type | Method and Description |
---|---|
Predicate |
clone() |
boolean |
equals(Object obj) |
List<Predicate> |
getAnd()
A list of predicates to combine logically.
|
String |
getField()
The field to query.
|
String |
getOperand()
The value to use when performing the evaluation.
|
String |
getOperator()
The operator to use to perform the evaluation.
|
List<Predicate> |
getOr()
A list of predicates to combine logically.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAnd(Collection<Predicate> and)
A list of predicates to combine logically.
|
void |
setField(String field)
The field to query.
|
void |
setOperand(String operand)
The value to use when performing the evaluation.
|
void |
setOperator(String operator)
The operator to use to perform the evaluation.
|
void |
setOr(Collection<Predicate> or)
A list of predicates to combine logically.
|
String |
toString()
Returns a string representation of this object.
|
Predicate |
withAnd(Collection<Predicate> and)
A list of predicates to combine logically.
|
Predicate |
withAnd(Predicate... and)
A list of predicates to combine logically.
|
Predicate |
withField(String field)
The field to query.
|
Predicate |
withOperand(String operand)
The value to use when performing the evaluation.
|
Predicate |
withOperator(String operator)
The operator to use to perform the evaluation.
|
Predicate |
withOr(Collection<Predicate> or)
A list of predicates to combine logically.
|
Predicate |
withOr(Predicate... or)
A list of predicates to combine logically.
|
public List<Predicate> getAnd()
A list of predicates to combine logically.
public void setAnd(Collection<Predicate> and)
A list of predicates to combine logically.
and
- A list of predicates to combine logically.public Predicate withAnd(Predicate... and)
A list of predicates to combine logically.
NOTE: This method appends the values to the existing list (if any). Use
setAnd(java.util.Collection)
or withAnd(java.util.Collection)
if you want to override the
existing values.
and
- A list of predicates to combine logically.public Predicate withAnd(Collection<Predicate> and)
A list of predicates to combine logically.
and
- A list of predicates to combine logically.public void setField(String field)
The field to query.
field
- The field to query.public String getField()
The field to query.
public Predicate withField(String field)
The field to query.
field
- The field to query.public void setOperand(String operand)
The value to use when performing the evaluation.
operand
- The value to use when performing the evaluation.public String getOperand()
The value to use when performing the evaluation.
public Predicate withOperand(String operand)
The value to use when performing the evaluation.
operand
- The value to use when performing the evaluation.public void setOperator(String operator)
The operator to use to perform the evaluation.
operator
- The operator to use to perform the evaluation.public String getOperator()
The operator to use to perform the evaluation.
public Predicate withOperator(String operator)
The operator to use to perform the evaluation.
operator
- The operator to use to perform the evaluation.public List<Predicate> getOr()
A list of predicates to combine logically.
public void setOr(Collection<Predicate> or)
A list of predicates to combine logically.
or
- A list of predicates to combine logically.public Predicate withOr(Predicate... or)
A list of predicates to combine logically.
NOTE: This method appends the values to the existing list (if any). Use
setOr(java.util.Collection)
or withOr(java.util.Collection)
if you want to override the
existing values.
or
- A list of predicates to combine logically.public Predicate withOr(Collection<Predicate> or)
A list of predicates to combine logically.
or
- A list of predicates to combine logically.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.