@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TagFilter extends Object implements Serializable, Cloneable, StructuredPojo
A list of tags (keys and values) that are used to specify the associated resources.
| Constructor and Description |
|---|
TagFilter() |
| Modifier and Type | Method and Description |
|---|---|
TagFilter |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
One part of a key-value pair that makes up a tag.
|
List<String> |
getValues()
One part of a key-value pair that make up a tag.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setKey(String key)
One part of a key-value pair that makes up a tag.
|
void |
setValues(Collection<String> values)
One part of a key-value pair that make up a tag.
|
String |
toString()
Returns a string representation of this object.
|
TagFilter |
withKey(String key)
One part of a key-value pair that makes up a tag.
|
TagFilter |
withValues(Collection<String> values)
One part of a key-value pair that make up a tag.
|
TagFilter |
withValues(String... values)
One part of a key-value pair that make up a tag.
|
public void setKey(String key)
One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values.
key - One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for
more specific tag values.public String getKey()
One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values.
public TagFilter withKey(String key)
One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for more specific tag values.
key - One part of a key-value pair that makes up a tag. A key is a general label that acts like a category for
more specific tag values.public List<String> getValues()
One part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key). The value can be empty or null.
public void setValues(Collection<String> values)
One part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key). The value can be empty or null.
values - One part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).
The value can be empty or null.public TagFilter withValues(String... values)
One part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key). The value can be empty or null.
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 - One part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).
The value can be empty or null.public TagFilter withValues(Collection<String> values)
One part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key). The value can be empty or null.
values - One part of a key-value pair that make up a tag. A value acts as a descriptor within a tag category (key).
The value can be empty or null.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.