@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Filter extends Object implements Serializable, Cloneable, StructuredPojo
A filter used to restrict the results of describe calls. You can use multiple filters to return results that meet all applied filter requirements.
| Constructor and Description |
|---|
Filter() |
| Modifier and Type | Method and Description |
|---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
The name for this filter.
|
List<String> |
getValues()
The values of the filter.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setName(String name)
The name for this filter.
|
void |
setValues(Collection<String> values)
The values of the filter.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withName(FilterName name)
The name for this filter.
|
Filter |
withName(String name)
The name for this filter.
|
Filter |
withValues(Collection<String> values)
The values of the filter.
|
Filter |
withValues(String... values)
The values of the filter.
|
public void setName(String name)
The name for this filter.
name - The name for this filter.FilterNamepublic String getName()
The name for this filter.
FilterNamepublic Filter withName(String name)
The name for this filter.
name - The name for this filter.FilterNamepublic Filter withName(FilterName name)
The name for this filter.
name - The name for this filter.FilterNamepublic List<String> getValues()
The values of the filter. These are all the values for any of the applied filters.
public void setValues(Collection<String> values)
The values of the filter. These are all the values for any of the applied filters.
values - The values of the filter. These are all the values for any of the applied filters.public Filter withValues(String... values)
The values of the filter. These are all the values for any of the applied filters.
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 the filter. These are all the values for any of the applied filters.public Filter withValues(Collection<String> values)
The values of the filter. These are all the values for any of the applied filters.
values - The values of the filter. These are all the values for any of the applied filters.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.