@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 more specific results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.
Constructor and Description |
---|
Filter() |
Modifier and Type | Method and Description |
---|---|
Filter |
clone() |
boolean |
equals(Object obj) |
String |
getName()
Name of the filter.
|
List<String> |
getValues()
The value of the filter, which is case-sensitive.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setName(String name)
Name of the filter.
|
void |
setValues(Collection<String> values)
The value of the filter, which is case-sensitive.
|
String |
toString()
Returns a string representation of this object.
|
Filter |
withName(String name)
Name of the filter.
|
Filter |
withValues(Collection<String> values)
The value of the filter, which is case-sensitive.
|
Filter |
withValues(String... values)
The value of the filter, which is case-sensitive.
|
public void setName(String name)
Name of the filter. Filter names are case-sensitive.
name
- Name of the filter. Filter names are case-sensitive.public String getName()
Name of the filter. Filter names are case-sensitive.
public Filter withName(String name)
Name of the filter. Filter names are case-sensitive.
name
- Name of the filter. Filter names are case-sensitive.public List<String> getValues()
The value of the filter, which is case-sensitive. You can only specify one value for the filter.
public void setValues(Collection<String> values)
The value of the filter, which is case-sensitive. You can only specify one value for the filter.
values
- The value of the filter, which is case-sensitive. You can only specify one value for the filter.public Filter withValues(String... values)
The value of the filter, which is case-sensitive. You can only specify one value for the 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 value of the filter, which is case-sensitive. You can only specify one value for the filter.public Filter withValues(Collection<String> values)
The value of the filter, which is case-sensitive. You can only specify one value for the filter.
values
- The value of the filter, which is case-sensitive. You can only specify one value for the filter.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.