public class Filter extends Object implements Serializable
A filter used to limit results when describing tags. Multiple values can be specified per filter. A tag must match at least one of the specified values for it to be returned from an operation.
Wildcards can be included in filter values; * specifies that zero or more characters must match, and ? specifies that
exactly one character must match. Use a backslash to escape special characters. For example, a filter value of \*amazon\?\\ specifies
the literal string *amazon?\ .
| Constructor and Description |
|---|
Filter()
Default constructor for a new Filter object.
|
Filter(String name)
Constructs a new Filter object.
|
Filter(String name,
List<String> values)
Constructs a new Filter object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getName()
Specifies the name of the filter.
|
List<String> |
getValues()
Contains one or more values for the filter.
|
int |
hashCode() |
void |
setName(String name)
Specifies the name of the filter.
|
void |
setValues(Collection<String> values)
Contains one or more values for the filter.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Filter |
withName(String name)
Specifies the name of the filter.
|
Filter |
withValues(Collection<String> values)
Contains one or more values for the filter.
|
Filter |
withValues(String... values)
Contains one or more values for the filter.
|
public Filter()
public Filter(String name, List<String> values)
name - Specifies the name of the filter.values - Contains one or more values for the filter.public Filter(String name)
name - Specifies the name of the filter.public String getName()
public void setName(String name)
name - Specifies the name of the filter.public Filter withName(String name)
Returns a reference to this object so that method calls can be chained together.
name - Specifies the name of the filter.public List<String> getValues()
public void setValues(Collection<String> values)
values - Contains one or more values for the filter.public Filter withValues(String... values)
Returns a reference to this object so that method calls can be chained together.
values - Contains one or more values for the filter.public Filter withValues(Collection<String> values)
Returns a reference to this object so that method calls can be chained together.
values - Contains one or more values for the filter.public String toString()
toString in class ObjectObject.toString()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.