@Generated(value="software.amazon.awssdk:codegen") public final class Tag extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Tag.Builder,Tag>
A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings.
For information about the rules that apply to tag keys and tag values, see User-Defined Tag Restrictions in the Amazon Web Services Billing and Cost Management User Guide.
Modifier and Type | Class and Description |
---|---|
static interface |
Tag.Builder |
Modifier and Type | Method and Description |
---|---|
static Tag.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<SdkField<?>> |
sdkFields() |
static Class<? extends Tag.Builder> |
serializableBuilderClass() |
String |
tagKey()
The key of the tag.
|
String |
tagValue()
The value of the tag.
|
Tag.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public final String tagKey()
The key of the tag.
public final String tagValue()
The value of the tag.
public Tag.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<Tag.Builder,Tag>
public static Tag.Builder builder()
public static Class<? extends Tag.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public final String toString()
Copyright © 2022. All rights reserved.