|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.services.ec2.model.Filter
public class Filter
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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 Object
Object.toString()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |