@Generated(value="software.amazon.awssdk:codegen") public final class ResourceTag extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ResourceTag.Builder,ResourceTag>
The tag structure that contains a tag key and value.
Tagging is supported only for the following Cost Explorer resource types:
AnomalyMonitor ,
AnomalySubscription ,
CostCategory .
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResourceTag.Builder |
| Modifier and Type | Method and Description |
|---|---|
static ResourceTag.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
key()
The key that's associated with the tag.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ResourceTag.Builder> |
serializableBuilderClass() |
ResourceTag.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
value()
The value that's associated with the tag.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String key()
The key that's associated with the tag.
public final String value()
The value that's associated with the tag.
public ResourceTag.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ResourceTag.Builder,ResourceTag>public static ResourceTag.Builder builder()
public static Class<? extends ResourceTag.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2022. All rights reserved.