@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)
Marshalls this structured data using the given
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
.FilterConditionString
public 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
.FilterConditionString
public 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
.FilterConditionString
public 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
.FilterConditionString
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.