@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
Metadata that is associated with Amazon Web Services resources. In particular, a name-value pair that can be
associated with an Cloud9 development environment. There are two types of tags: user tags and system
tags. A user tag is created by the user. A system tag is automatically created by Amazon Web Services services. A
system tag is prefixed with "aws:"
and cannot be modified by the user.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The name part of a tag.
|
String |
getValue()
The value part of a tag.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The name part of a tag.
|
void |
setValue(String value)
The value part of a tag.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
The name part of a tag.
|
Tag |
withValue(String value)
The value part of a tag.
|
public void setKey(String key)
The name part of a tag.
key
- The name part of a tag.public String getKey()
The name part of a tag.
public Tag withKey(String key)
The name part of a tag.
key
- The name part of a tag.public void setValue(String value)
The value part of a tag.
value
- The value part of a tag.public String getValue()
The value part of a tag.
public Tag withValue(String value)
The value part of a tag.
value
- The value part of a tag.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.