@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable
A named set of filter values, used to return a more specific list of results. You can use a filter to match a set of resources by specific criteria, such as IDs.
Wildcards are not supported in filters.
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name of the filter.
|
List<String> |
getValues()
One or more filter values.
|
int |
hashCode() |
void |
setName(String name)
The name of the filter.
|
void |
setValues(Collection<String> values)
One or more filter values.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withName(String name)
The name of the filter.
|
Filter |
withValues(Collection<String> values)
One or more filter values.
|
Filter |
withValues(String... values)
One or more filter values.
|
public void setName(String name)
The name of the filter. Filter names are case sensitive.
name
- The name of the filter. Filter names are case sensitive.public String getName()
The name of the filter. Filter names are case sensitive.
public Filter withName(String name)
The name of the filter. Filter names are case sensitive.
name
- The name of the filter. Filter names are case sensitive.public List<String> getValues()
One or more filter values. Filter values are case sensitive.
public void setValues(Collection<String> values)
One or more filter values. Filter values are case sensitive.
values
- One or more filter values. Filter values are case sensitive.public Filter withValues(String... values)
One or more filter values. Filter values are case sensitive.
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 filter values. Filter values are case sensitive.public Filter withValues(Collection<String> values)
One or more filter values. Filter values are case sensitive.
values
- One or more filter values. Filter values are case sensitive.public String toString()
toString
in class Object
Object.toString()