public class Tag extends Object implements Serializable, Cloneable
A tag consisting of a name/value pair for a resource.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key, or name, for the resource tag.
|
String |
getValue()
The value for the resource tag.
|
int |
hashCode() |
void |
setKey(String key)
The key, or name, for the resource tag.
|
void |
setValue(String value)
The value for the resource tag.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(String key)
The key, or name, for the resource tag.
|
Tag |
withValue(String value)
The value for the resource tag.
|
public String getKey()
public void setKey(String key)
key
- The key, or name, for the resource tag.public Tag withKey(String key)
Returns a reference to this object so that method calls can be chained together.
key
- The key, or name, for the resource tag.public String getValue()
public void setValue(String value)
value
- The value for the resource tag.public Tag withValue(String value)
Returns a reference to this object so that method calls can be chained together.
value
- The value for the resource tag.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.