public class Tag extends Object implements Serializable
Constructor and Description |
---|
Tag()
Default constructor for Tag object.
|
Tag(String key)
Constructs a new Tag object.
|
Tag(String key,
String value)
Constructs a new Tag object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getKey()
The key of the tag.
|
String |
getValue()
The value of the tag.
|
int |
hashCode() |
void |
setKey(String key)
The key of the tag.
|
void |
setValue(String value)
The value of the tag.
|
String |
toString() |
public Tag()
public Tag(String key)
key
- The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin withaws:
public Tag(String key, String value)
key
- The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin withaws:
value
- The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.public void setKey(String key)
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with
aws:
key
- The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin withaws:
public String getKey()
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with
aws:
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin withaws:
public void setValue(String value)
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
value
- The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.public String getValue()
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.Copyright © 2010–2020. All rights reserved.