public class Tag
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
key
A key is the required name of the tag.
|
private java.lang.String |
value
A value is the optional value of the tag.
|
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKey()
A key is the required name of the tag.
|
java.lang.String |
getValue()
A value is the optional value of the tag.
|
int |
hashCode() |
void |
setKey(java.lang.String key)
A key is the required name of the tag.
|
void |
setValue(java.lang.String value)
A value is the optional value of the tag.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(java.lang.String key)
A key is the required name of the tag.
|
Tag |
withValue(java.lang.String value)
A value is the optional value of the tag.
|
private java.lang.String key
A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
private java.lang.String value
A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
public void setKey(java.lang.String key)
A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
key
- A key is the required name of the tag. The string value can be
from 1 to 128 Unicode characters in length and cannot be prefixed
with "aws:" or "dms:". The string can only contain only the set of
Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-'
(Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").public java.lang.String getKey()
A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
public Tag withKey(java.lang.String key)
A key is the required name of the tag. The string value can be from 1 to 128 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
key
- A key is the required name of the tag. The string value can be
from 1 to 128 Unicode characters in length and cannot be prefixed
with "aws:" or "dms:". The string can only contain only the set of
Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-'
(Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").public void setValue(java.lang.String value)
A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
value
- A value is the optional value of the tag. The string value can be
from 1 to 256 Unicode characters in length and cannot be prefixed
with "aws:" or "dms:". The string can only contain only the set of
Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-'
(Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").public java.lang.String getValue()
A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
public Tag withValue(java.lang.String value)
A value is the optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and cannot be prefixed with "aws:" or "dms:". The string can only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").
value
- A value is the optional value of the tag. The string value can be
from 1 to 256 Unicode characters in length and cannot be prefixed
with "aws:" or "dms:". The string can only contain only the set of
Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-'
(Java regex: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-]*)$").public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Tag clone()
clone
in class java.lang.Object