Class Tag
- All Implemented Interfaces:
Serializable
,Cloneable
The Tag type enables you to specify a key-value pair that can be used to store information about an AWS CloudFormation stack.
- See Also:
-
Constructor Details
-
Tag
public Tag()
-
-
Method Details
-
setKey
Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix:
aws:
.- Parameters:
key
- Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix:aws:
.
-
getKey
Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix:
aws:
.- Returns:
- Required. A string used to identify this tag. You can
specify a maximum of 128 characters for a tag key. Tags owned by
Amazon Web Services (AWS) have the reserved prefix:
aws:
.
-
withKey
Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix:
aws:
.- Parameters:
key
- Required. A string used to identify this tag. You can specify a maximum of 128 characters for a tag key. Tags owned by Amazon Web Services (AWS) have the reserved prefix:aws:
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setValue
Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.
- Parameters:
value
- Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.
-
getValue
Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.
- Returns:
- Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.
-
withValue
Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.
- Parameters:
value
- Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.- 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
-