@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttributeFilter extends Object implements Serializable, Cloneable, StructuredPojo
Provides filtering the query results based on document attributes.
When you use the AndAllFilters or OrAllFilters, filters you can use a total of 3 layers.
For example, you can use:
<AndAllFilters>
<OrAllFilters>
<EqualTo>
| Constructor and Description |
|---|
AttributeFilter() |
| Modifier and Type | Method and Description |
|---|---|
AttributeFilter |
clone() |
boolean |
equals(Object obj) |
List<AttributeFilter> |
getAndAllFilters()
Performs a logical
AND operation on all supplied filters. |
DocumentAttribute |
getContainsAll()
Returns true when a document contains all of the specified document attributes.
|
DocumentAttribute |
getContainsAny()
Returns true when a document contains any of the specified document attributes.
|
DocumentAttribute |
getEqualsTo()
Performs an equals operation on two document attributes.
|
DocumentAttribute |
getGreaterThan()
Performs a greater than operation on two document attributes.
|
DocumentAttribute |
getGreaterThanOrEquals()
Performs a greater or equals than operation on two document attributes.
|
DocumentAttribute |
getLessThan()
Performs a less than operation on two document attributes.
|
DocumentAttribute |
getLessThanOrEquals()
Performs a less than or equals operation on two document attributes.
|
AttributeFilter |
getNotFilter()
Performs a logical
NOT operation on all supplied filters. |
List<AttributeFilter> |
getOrAllFilters()
Performs a logical
OR operation on all supplied filters. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setAndAllFilters(Collection<AttributeFilter> andAllFilters)
Performs a logical
AND operation on all supplied filters. |
void |
setContainsAll(DocumentAttribute containsAll)
Returns true when a document contains all of the specified document attributes.
|
void |
setContainsAny(DocumentAttribute containsAny)
Returns true when a document contains any of the specified document attributes.
|
void |
setEqualsTo(DocumentAttribute equalsTo)
Performs an equals operation on two document attributes.
|
void |
setGreaterThan(DocumentAttribute greaterThan)
Performs a greater than operation on two document attributes.
|
void |
setGreaterThanOrEquals(DocumentAttribute greaterThanOrEquals)
Performs a greater or equals than operation on two document attributes.
|
void |
setLessThan(DocumentAttribute lessThan)
Performs a less than operation on two document attributes.
|
void |
setLessThanOrEquals(DocumentAttribute lessThanOrEquals)
Performs a less than or equals operation on two document attributes.
|
void |
setNotFilter(AttributeFilter notFilter)
Performs a logical
NOT operation on all supplied filters. |
void |
setOrAllFilters(Collection<AttributeFilter> orAllFilters)
Performs a logical
OR operation on all supplied filters. |
String |
toString()
Returns a string representation of this object.
|
AttributeFilter |
withAndAllFilters(AttributeFilter... andAllFilters)
Performs a logical
AND operation on all supplied filters. |
AttributeFilter |
withAndAllFilters(Collection<AttributeFilter> andAllFilters)
Performs a logical
AND operation on all supplied filters. |
AttributeFilter |
withContainsAll(DocumentAttribute containsAll)
Returns true when a document contains all of the specified document attributes.
|
AttributeFilter |
withContainsAny(DocumentAttribute containsAny)
Returns true when a document contains any of the specified document attributes.
|
AttributeFilter |
withEqualsTo(DocumentAttribute equalsTo)
Performs an equals operation on two document attributes.
|
AttributeFilter |
withGreaterThan(DocumentAttribute greaterThan)
Performs a greater than operation on two document attributes.
|
AttributeFilter |
withGreaterThanOrEquals(DocumentAttribute greaterThanOrEquals)
Performs a greater or equals than operation on two document attributes.
|
AttributeFilter |
withLessThan(DocumentAttribute lessThan)
Performs a less than operation on two document attributes.
|
AttributeFilter |
withLessThanOrEquals(DocumentAttribute lessThanOrEquals)
Performs a less than or equals operation on two document attributes.
|
AttributeFilter |
withNotFilter(AttributeFilter notFilter)
Performs a logical
NOT operation on all supplied filters. |
AttributeFilter |
withOrAllFilters(AttributeFilter... orAllFilters)
Performs a logical
OR operation on all supplied filters. |
AttributeFilter |
withOrAllFilters(Collection<AttributeFilter> orAllFilters)
Performs a logical
OR operation on all supplied filters. |
public List<AttributeFilter> getAndAllFilters()
Performs a logical AND operation on all supplied filters.
AND operation on all supplied filters.public void setAndAllFilters(Collection<AttributeFilter> andAllFilters)
Performs a logical AND operation on all supplied filters.
andAllFilters - Performs a logical AND operation on all supplied filters.public AttributeFilter withAndAllFilters(AttributeFilter... andAllFilters)
Performs a logical AND operation on all supplied filters.
NOTE: This method appends the values to the existing list (if any). Use
setAndAllFilters(java.util.Collection) or withAndAllFilters(java.util.Collection) if you want
to override the existing values.
andAllFilters - Performs a logical AND operation on all supplied filters.public AttributeFilter withAndAllFilters(Collection<AttributeFilter> andAllFilters)
Performs a logical AND operation on all supplied filters.
andAllFilters - Performs a logical AND operation on all supplied filters.public List<AttributeFilter> getOrAllFilters()
Performs a logical OR operation on all supplied filters.
OR operation on all supplied filters.public void setOrAllFilters(Collection<AttributeFilter> orAllFilters)
Performs a logical OR operation on all supplied filters.
orAllFilters - Performs a logical OR operation on all supplied filters.public AttributeFilter withOrAllFilters(AttributeFilter... orAllFilters)
Performs a logical OR operation on all supplied filters.
NOTE: This method appends the values to the existing list (if any). Use
setOrAllFilters(java.util.Collection) or withOrAllFilters(java.util.Collection) if you want to
override the existing values.
orAllFilters - Performs a logical OR operation on all supplied filters.public AttributeFilter withOrAllFilters(Collection<AttributeFilter> orAllFilters)
Performs a logical OR operation on all supplied filters.
orAllFilters - Performs a logical OR operation on all supplied filters.public void setNotFilter(AttributeFilter notFilter)
Performs a logical NOT operation on all supplied filters.
notFilter - Performs a logical NOT operation on all supplied filters.public AttributeFilter getNotFilter()
Performs a logical NOT operation on all supplied filters.
NOT operation on all supplied filters.public AttributeFilter withNotFilter(AttributeFilter notFilter)
Performs a logical NOT operation on all supplied filters.
notFilter - Performs a logical NOT operation on all supplied filters.public void setEqualsTo(DocumentAttribute equalsTo)
Performs an equals operation on two document attributes.
equalsTo - Performs an equals operation on two document attributes.public DocumentAttribute getEqualsTo()
Performs an equals operation on two document attributes.
public AttributeFilter withEqualsTo(DocumentAttribute equalsTo)
Performs an equals operation on two document attributes.
equalsTo - Performs an equals operation on two document attributes.public void setContainsAll(DocumentAttribute containsAll)
Returns true when a document contains all of the specified document attributes.
containsAll - Returns true when a document contains all of the specified document attributes.public DocumentAttribute getContainsAll()
Returns true when a document contains all of the specified document attributes.
public AttributeFilter withContainsAll(DocumentAttribute containsAll)
Returns true when a document contains all of the specified document attributes.
containsAll - Returns true when a document contains all of the specified document attributes.public void setContainsAny(DocumentAttribute containsAny)
Returns true when a document contains any of the specified document attributes.
containsAny - Returns true when a document contains any of the specified document attributes.public DocumentAttribute getContainsAny()
Returns true when a document contains any of the specified document attributes.
public AttributeFilter withContainsAny(DocumentAttribute containsAny)
Returns true when a document contains any of the specified document attributes.
containsAny - Returns true when a document contains any of the specified document attributes.public void setGreaterThan(DocumentAttribute greaterThan)
Performs a greater than operation on two document attributes. Use with a document attribute of type
Integer or Long.
greaterThan - Performs a greater than operation on two document attributes. Use with a document attribute of type
Integer or Long.public DocumentAttribute getGreaterThan()
Performs a greater than operation on two document attributes. Use with a document attribute of type
Integer or Long.
Integer or Long.public AttributeFilter withGreaterThan(DocumentAttribute greaterThan)
Performs a greater than operation on two document attributes. Use with a document attribute of type
Integer or Long.
greaterThan - Performs a greater than operation on two document attributes. Use with a document attribute of type
Integer or Long.public void setGreaterThanOrEquals(DocumentAttribute greaterThanOrEquals)
Performs a greater or equals than operation on two document attributes. Use with a document attribute of type
Integer or Long.
greaterThanOrEquals - Performs a greater or equals than operation on two document attributes. Use with a document attribute of
type Integer or Long.public DocumentAttribute getGreaterThanOrEquals()
Performs a greater or equals than operation on two document attributes. Use with a document attribute of type
Integer or Long.
Integer or Long.public AttributeFilter withGreaterThanOrEquals(DocumentAttribute greaterThanOrEquals)
Performs a greater or equals than operation on two document attributes. Use with a document attribute of type
Integer or Long.
greaterThanOrEquals - Performs a greater or equals than operation on two document attributes. Use with a document attribute of
type Integer or Long.public void setLessThan(DocumentAttribute lessThan)
Performs a less than operation on two document attributes. Use with a document attribute of type
Integer or Long.
lessThan - Performs a less than operation on two document attributes. Use with a document attribute of type
Integer or Long.public DocumentAttribute getLessThan()
Performs a less than operation on two document attributes. Use with a document attribute of type
Integer or Long.
Integer or Long.public AttributeFilter withLessThan(DocumentAttribute lessThan)
Performs a less than operation on two document attributes. Use with a document attribute of type
Integer or Long.
lessThan - Performs a less than operation on two document attributes. Use with a document attribute of type
Integer or Long.public void setLessThanOrEquals(DocumentAttribute lessThanOrEquals)
Performs a less than or equals operation on two document attributes. Use with a document attribute of type
Integer or Long.
lessThanOrEquals - Performs a less than or equals operation on two document attributes. Use with a document attribute of type
Integer or Long.public DocumentAttribute getLessThanOrEquals()
Performs a less than or equals operation on two document attributes. Use with a document attribute of type
Integer or Long.
Integer or Long.public AttributeFilter withLessThanOrEquals(DocumentAttribute lessThanOrEquals)
Performs a less than or equals operation on two document attributes. Use with a document attribute of type
Integer or Long.
lessThanOrEquals - Performs a less than or equals operation on two document attributes. Use with a document attribute of type
Integer or Long.public String toString()
toString in class ObjectObject.toString()public AttributeFilter clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.