@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A key/value pair containing user-defined metadata that you can associate with an Amazon EMR resource. Tags make it easier to associate clusters in various ways, such as grouping clusters to track your Amazon EMR resource allocation costs. For more information, see Tagging Amazon EMR Resources.
Constructor and Description |
---|
Tag()
Default constructor for Tag object.
|
Tag(String key,
String value)
Constructs a new Tag object.
|
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
A user-defined key, which is the minimum required information for a valid tag.
|
String |
getValue()
A user-defined value, which is optional in a tag.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
A user-defined key, which is the minimum required information for a valid tag.
|
void |
setValue(String value)
A user-defined value, which is optional in a tag.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
Tag |
withKey(String key)
A user-defined key, which is the minimum required information for a valid tag.
|
Tag |
withValue(String value)
A user-defined value, which is optional in a tag.
|
public Tag()
public Tag(String key, String value)
key
- A user-defined key, which is the minimum required information for a valid tag. For more information, see
Tagging
Amazon EMR Resources.value
- A user-defined value, which is optional in a tag. For more information, see Tagging Amazon
EMR Resources.public void setKey(String key)
A user-defined key, which is the minimum required information for a valid tag. For more information, see Tagging Amazon EMR Resources.
key
- A user-defined key, which is the minimum required information for a valid tag. For more information, see
Tagging
Amazon EMR Resources.public String getKey()
A user-defined key, which is the minimum required information for a valid tag. For more information, see Tagging Amazon EMR Resources.
public Tag withKey(String key)
A user-defined key, which is the minimum required information for a valid tag. For more information, see Tagging Amazon EMR Resources.
key
- A user-defined key, which is the minimum required information for a valid tag. For more information, see
Tagging
Amazon EMR Resources.public void setValue(String value)
A user-defined value, which is optional in a tag. For more information, see Tagging Amazon EMR Resources.
value
- A user-defined value, which is optional in a tag. For more information, see Tagging Amazon
EMR Resources.public String getValue()
A user-defined value, which is optional in a tag. For more information, see Tagging Amazon EMR Resources.
public Tag withValue(String value)
A user-defined value, which is optional in a tag. For more information, see Tagging Amazon EMR Resources.
value
- A user-defined value, which is optional in a tag. For more information, see Tagging Amazon
EMR Resources.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.