@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable
Used to streamline results of a search based on the property being filtered.
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The property being filtered.
|
List<String> |
getValues()
The property values to filter on.
|
int |
hashCode() |
void |
setName(String name)
The property being filtered.
|
void |
setValues(Collection<String> values)
The property values to filter on.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withName(String name)
The property being filtered.
|
Filter |
withValues(Collection<String> values)
The property values to filter on.
|
Filter |
withValues(String... values)
The property values to filter on.
|
public void setName(String name)
The property being filtered. For example, UserId.
name
- The property being filtered. For example, UserId.public String getName()
The property being filtered. For example, UserId.
public Filter withName(String name)
The property being filtered. For example, UserId.
name
- The property being filtered. For example, UserId.public List<String> getValues()
The property values to filter on. For example, "user-123".
public void setValues(Collection<String> values)
The property values to filter on. For example, "user-123".
values
- The property values to filter on. For example, "user-123".public Filter withValues(String... values)
The property values to filter on. For example, "user-123".
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
- The property values to filter on. For example, "user-123".public Filter withValues(Collection<String> values)
The property values to filter on. For example, "user-123".
values
- The property values to filter on. For example, "user-123".public String toString()
toString
in class Object
Object.toString()