Class Tag
- java.lang.Object
-
- com.amazonaws.services.cloudformation.model.Tag
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Tag extends Object implements 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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Tag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tagclone()booleanequals(Object obj)StringgetKey()Required.StringgetValue()Required.inthashCode()voidsetKey(String key)Required.voidsetValue(String value)Required.StringtoString()Returns a string representation of this object; useful for testing and debugging.TagwithKey(String key)Required.TagwithValue(String value)Required.
-
-
-
Method Detail
-
setKey
public void setKey(String 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:.- 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
public String 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
public Tag withKey(String 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:.- 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
public void setValue(String value)
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
public String 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
public Tag withValue(String value)
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
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-