public class Tag extends Object implements Serializable, Cloneable
A key and value pair.
This data type is used as a request parameter in the SetTagsForResource action and a response element in the ListTagsForResource action.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The tag key.
|
String |
getValue()
The value assigned to a tag key.
|
int |
hashCode() |
void |
setKey(String key)
The tag key.
|
void |
setValue(String value)
The value assigned to a tag key.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(String key)
The tag key.
|
Tag |
withValue(String value)
The value assigned to a tag key.
|
public void setKey(String key)
The tag key.
key
- The tag key.public String getKey()
The tag key.
public Tag withKey(String key)
The tag key.
key
- The tag key.public void setValue(String value)
The value assigned to a tag key.
value
- The value assigned to a tag key.public String getValue()
The value assigned to a tag key.
public Tag withValue(String value)
The value assigned to a tag key.
value
- The value assigned to a tag key.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.