@Generated(value="software.amazon.awssdk:codegen") public class Tag extends Object implements ToCopyableBuilder<Tag.Builder,Tag>
The Tag type enables you to specify a key-value pair that can be used to store information about an AWS CloudFormation stack.
Modifier and Type | Class and Description |
---|---|
static interface |
Tag.Builder |
Modifier and Type | Method and Description |
---|---|
static Tag.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
key()
Required.
|
static Class<? extends Tag.Builder> |
serializableBuilderClass() |
Tag.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
String |
value()
Required.
|
copy
public 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:
.
aws:
.public String value()
Required. A string containing the value for this tag. You can specify a maximum of 256 characters for a tag value.
public Tag.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Tag.Builder,Tag>
public static Tag.Builder builder()
public static Class<? extends Tag.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.