@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Tag extends Object implements Serializable, Cloneable, StructuredPojo
A key-value pair you can use to manage, filter, and search for your resources. Allowed characters include UTF-8 letters, numbers, spaces, and the following characters: + - = . _ : /.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
The key part of a tag's key-value pair.
|
String |
getValue()
The value part of a tag's key-value pair.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setKey(String key)
The key part of a tag's key-value pair.
|
void |
setValue(String value)
The value part of a tag's key-value pair.
|
String |
toString()
Returns a string representation of this object.
|
Tag |
withKey(String key)
The key part of a tag's key-value pair.
|
Tag |
withValue(String value)
The value part of a tag's key-value pair.
|
public void setKey(String key)
The key part of a tag's key-value pair. The key can't start with aws:
.
key
- The key part of a tag's key-value pair. The key can't start with aws:
.public String getKey()
The key part of a tag's key-value pair. The key can't start with aws:
.
aws:
.public Tag withKey(String key)
The key part of a tag's key-value pair. The key can't start with aws:
.
key
- The key part of a tag's key-value pair. The key can't start with aws:
.public void setValue(String value)
The value part of a tag's key-value pair.
value
- The value part of a tag's key-value pair.public String getValue()
The value part of a tag's key-value pair.
public Tag withValue(String value)
The value part of a tag's key-value pair.
value
- The value part of a tag's key-value pair.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.