@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class TagFilter extends Object implements Serializable, Cloneable, StructuredPojo
Represents a tag.
| Constructor and Description |
|---|
TagFilter() |
| Modifier and Type | Method and Description |
|---|---|
TagFilter |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The tag key.
|
List<String> |
getValues()
The tag values (0 to 20).
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setKey(String key)
The tag key.
|
void |
setValues(Collection<String> values)
The tag values (0 to 20).
|
String |
toString()
Returns a string representation of this object.
|
TagFilter |
withKey(String key)
The tag key.
|
TagFilter |
withValues(Collection<String> values)
The tag values (0 to 20).
|
TagFilter |
withValues(String... values)
The tag values (0 to 20).
|
public void setKey(String key)
The tag key.
key - The tag key.public String getKey()
The tag key.
public TagFilter withKey(String key)
The tag key.
key - The tag key.public List<String> getValues()
The tag values (0 to 20).
public void setValues(Collection<String> values)
The tag values (0 to 20).
values - The tag values (0 to 20).public TagFilter withValues(String... values)
The tag values (0 to 20).
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 tag values (0 to 20).public TagFilter withValues(Collection<String> values)
The tag values (0 to 20).
values - The tag values (0 to 20).public String toString()
toString in class ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2021. All rights reserved.