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.
Constructor and Description |
---|
Tag() |
Modifier and Type | Method and Description |
---|---|
Tag |
clone() |
boolean |
equals(Object obj) |
String |
getKey()
Required.
|
String |
getValue()
Required.
|
int |
hashCode() |
void |
setKey(String key)
Required.
|
void |
setValue(String value)
Required.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Tag |
withKey(String key)
Required.
|
Tag |
withValue(String value)
Required.
|
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:
.
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:
.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:
.
aws:
.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:
.
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:
.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.
value
- Required. A string containing the value for this tag. You
can specify a maximum of 256 characters for a tag value.public String getValue()
Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.
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.
value
- Required. A string containing the value for this tag. You
can specify a maximum of 256 characters for a tag value.public String toString()
toString
in class Object
Object.toString()
Copyright © 2018. All rights reserved.