@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable, StructuredPojo
Describes a filter for choosing a subset of objects. Each filter consists of a condition and a match statement. The
condition is either IS or IS_NOT, which specifies whether to include or exclude the objects
that match the statement, respectively. The match statement consists of a key and a value.
| Constructor and Description |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getCondition()
The condition to apply.
|
String |
getKey()
The name of the parameter to filter on.
|
String |
getValue()
The value to match.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setCondition(String condition)
The condition to apply.
|
void |
setKey(String key)
The name of the parameter to filter on.
|
void |
setValue(String value)
The value to match.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withCondition(FilterConditionString condition)
The condition to apply.
|
Filter |
withCondition(String condition)
The condition to apply.
|
Filter |
withKey(String key)
The name of the parameter to filter on.
|
Filter |
withValue(String value)
The value to match.
|
public void setKey(String key)
The name of the parameter to filter on.
key - The name of the parameter to filter on.public String getKey()
The name of the parameter to filter on.
public Filter withKey(String key)
The name of the parameter to filter on.
key - The name of the parameter to filter on.public void setValue(String value)
The value to match.
value - The value to match.public String getValue()
The value to match.
public Filter withValue(String value)
The value to match.
value - The value to match.public void setCondition(String condition)
The condition to apply. To include the objects that match the statement, specify IS. To exclude
matching objects, specify IS_NOT.
condition - The condition to apply. To include the objects that match the statement, specify IS. To
exclude matching objects, specify IS_NOT.FilterConditionStringpublic String getCondition()
The condition to apply. To include the objects that match the statement, specify IS. To exclude
matching objects, specify IS_NOT.
IS. To
exclude matching objects, specify IS_NOT.FilterConditionStringpublic Filter withCondition(String condition)
The condition to apply. To include the objects that match the statement, specify IS. To exclude
matching objects, specify IS_NOT.
condition - The condition to apply. To include the objects that match the statement, specify IS. To
exclude matching objects, specify IS_NOT.FilterConditionStringpublic Filter withCondition(FilterConditionString condition)
The condition to apply. To include the objects that match the statement, specify IS. To exclude
matching objects, specify IS_NOT.
condition - The condition to apply. To include the objects that match the statement, specify IS. To
exclude matching objects, specify IS_NOT.FilterConditionStringpublic String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2024. All rights reserved.