Class Tag
- All Implemented Interfaces:
Serializable,Cloneable
Describes a tag.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleangetKey()The key of the tag.getValue()The value of the tag.inthashCode()voidThe key of the tag.voidThe value of the tag.toString()Returns a string representation of this object; useful for testing and debugging.The key of the tag.The value of the tag.
-
Constructor Details
-
Tag
public Tag()Default constructor for Tag object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it. -
Tag
Constructs a new Tag object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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:
-
Tag
Constructs a new Tag object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.- Parameters:
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:value- The value of the tag.Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
-
Method Details
-
setKey
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with
aws:- Parameters:
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:
-
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:- Returns:
- The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with
aws:
-
withKey
The key of the tag.
Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with
aws:- Parameters:
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:- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
- Parameters:
value- The value of the tag.Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
getValue
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
- Returns:
- The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
-
withValue
The value of the tag.
Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
- Parameters:
value- The value of the tag.Constraints: Tag values are case-sensitive and accept a maximum of 255 Unicode characters.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-