public class Filter extends Object implements Serializable
| 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()
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; useful for testing and
debugging.
|
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 Filter()
public Filter(String name, List<String> values)
name - The name of the filter.values - One or more filter values.public Filter(String name)
name - The name of the filter.public String getName()
public void setName(String name)
name - 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 - The name of the filter.public List<String> getValues()
public void setValues(Collection<String> values)
values - One or more filter values.public Filter withValues(String... values)
Returns a reference to this object so that method calls can be chained together.
values - One or more filter values.public Filter withValues(Collection<String> values)
Returns a reference to this object so that method calls can be chained together.
values - One or more filter values.public String toString()
toString in class ObjectObject.toString()Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.