@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable, StructuredPojo
A filter name and value pair that is used to return a more specific list of results. Filters can be used to match a set of resources by various criteria.
| Constructor and Description |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key of a filter.
|
List<String> |
getValues()
The values of a filter.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setKey(String key)
The key of a filter.
|
void |
setValues(Collection<String> values)
The values of a filter.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withKey(String key)
The key of a filter.
|
Filter |
withValues(Collection<String> values)
The values of a filter.
|
Filter |
withValues(String... values)
The values of a filter.
|
public void setKey(String key)
The key of a filter.
key - The key of a filter.public String getKey()
The key of a filter.
public Filter withKey(String key)
The key of a filter.
key - The key of a filter.public void setValues(Collection<String> values)
The values of a filter.
values - The values of a filter.public Filter withValues(String... values)
The values of a filter.
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 values of a filter.public Filter withValues(Collection<String> values)
The values of a filter.
values - The values of a filter.public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.