@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable, StructuredPojo
A filter name and value pair that is used to return more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getAttribute()
The name of an attribute to use as a filter.
|
String |
getOperation()
The type of search (For example, eq, geq, leq)
|
String |
getValue()
Value of the filter.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAttribute(String attribute)
The name of an attribute to use as a filter.
|
void |
setOperation(String operation)
The type of search (For example, eq, geq, leq)
|
void |
setValue(String value)
Value of the filter.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withAttribute(String attribute)
The name of an attribute to use as a filter.
|
Filter |
withOperation(String operation)
The type of search (For example, eq, geq, leq)
|
Filter |
withValue(String value)
Value of the filter.
|
public void setAttribute(String attribute)
The name of an attribute to use as a filter.
attribute
- The name of an attribute to use as a filter.public String getAttribute()
The name of an attribute to use as a filter.
public Filter withAttribute(String attribute)
The name of an attribute to use as a filter.
attribute
- The name of an attribute to use as a filter.public void setOperation(String operation)
The type of search (For example, eq, geq, leq)
operation
- The type of search (For example, eq, geq, leq)public String getOperation()
The type of search (For example, eq, geq, leq)
public Filter withOperation(String operation)
The type of search (For example, eq, geq, leq)
operation
- The type of search (For example, eq, geq, leq)public void setValue(String value)
Value of the filter.
value
- Value of the filter.public String getValue()
Value of the filter.
public Filter withValue(String value)
Value of the filter.
value
- Value of the filter.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.