@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable, StructuredPojo
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 |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
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, UserName.
name - The property being filtered. For example, UserName.public String getName()
The property being filtered. For example, UserName.
public Filter withName(String name)
The property being filtered. For example, UserName.
name - The property being filtered. For example, UserName.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 ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.