@Generated(value="software.amazon.awssdk:codegen") public final class Tag extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Tag.Builder,Tag>
A collection of tags associated with a container. Each tag consists of a key:value pair, which can be anything you define. Typically, the tag key represents a category (such as "environment") and the tag value represents a specific value within that category (such as "test," "development," or "production"). You can add up to 50 tags to each container. For more information about tagging, including naming and usage conventions, see Tagging Resources in MediaStore.
| 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() |
String |
key()
Part of the key:value pair that defines a tag.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Tag.Builder> |
serializableBuilderClass() |
Tag.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
value()
Part of the key:value pair that defines a tag.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String key()
Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive.
public final String value()
Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive.
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 SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.