Class Tag
- All Implemented Interfaces:
Serializable
,Cloneable
A custom key-value pair associated with a resource such as a CloudTrail trail.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
getKey()
The key in a key-value pair.getValue()
The value in a key-value pair of a tag.int
hashCode()
void
The key in a key-value pair.void
The value in a key-value pair of a tag.toString()
Returns a string representation of this object; useful for testing and debugging.The key in a key-value pair.The value in a key-value pair of a tag.
-
Constructor Details
-
Tag
public Tag()
-
-
Method Details
-
setKey
The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.
- Parameters:
key
- The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.
-
getKey
The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.
- Returns:
- The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.
-
withKey
The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.
- Parameters:
key
- The key in a key-value pair. The key must be must be no longer than 128 Unicode characters. The key must be unique for the resource to which it applies.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.
- Parameters:
value
- The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.
-
getValue
The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.
- Returns:
- The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.
-
withValue
The value in a key-value pair of a tag. The value must be no longer than 256 Unicode characters.
- Parameters:
value
- The value in a key-value pair of a tag. The value must be no longer than 256 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
-