@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable, StructuredPojo
A filter object 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.
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The type of name to filter by.
|
String |
getOperator()
An operator for filtering results.
|
List<String> |
getValues()
One or more values for the name to filter by.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
The type of name to filter by.
|
void |
setOperator(String operator)
An operator for filtering results.
|
void |
setValues(Collection<String> values)
One or more values for the name to filter by.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withName(String name)
The type of name to filter by.
|
Filter |
withOperator(Operator operator)
An operator for filtering results.
|
Filter |
withOperator(String operator)
An operator for filtering results.
|
Filter |
withValues(Collection<String> values)
One or more values for the name to filter by.
|
Filter |
withValues(String... values)
One or more values for the name to filter by.
|
public void setName(String name)
The type of name to filter by.
name
- The type of name to filter by.public String getName()
The type of name to filter by.
public Filter withName(String name)
The type of name to filter by.
name
- The type of name to filter by.public void setOperator(String operator)
An operator for filtering results.
operator
- An operator for filtering results.Operator
public String getOperator()
An operator for filtering results.
Operator
public Filter withOperator(String operator)
An operator for filtering results.
operator
- An operator for filtering results.Operator
public Filter withOperator(Operator operator)
An operator for filtering results.
operator
- An operator for filtering results.Operator
public List<String> getValues()
One or more values for the name to filter by.
public void setValues(Collection<String> values)
One or more values for the name to filter by.
values
- One or more values for the name to filter by.public Filter withValues(String... values)
One or more values for the name to filter by.
NOTE: This method appends the values to the existing list (if any). Use
setValues(java.util.Collection)
or withValues(java.util.Collection)
if you want to override the
existing values.
values
- One or more values for the name to filter by.public Filter withValues(Collection<String> values)
One or more values for the name to filter by.
values
- One or more values for the name to filter by.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.