@Generated(value="com.amazonaws:aws-java-sdk-code-generator") 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 void setKey(String key)
The key, or name, for the resource tag.
key
- The key, or name, for the resource tag.public String getKey()
The key, or name, for the resource tag.
public Tag withKey(String key)
The key, or name, for the resource tag.
key
- The key, or name, for the resource tag.public void setValue(String value)
The value for the resource tag.
value
- The value for the resource tag.public String getValue()
The value for the resource tag.
public Tag withValue(String value)
The value for the resource tag.
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.