@Generated(value="software.amazon.awssdk:codegen") public final class TagResourceRequest extends EcsRequest implements ToCopyableBuilder<TagResourceRequest.Builder,TagResourceRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
TagResourceRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TagResourceRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
resourceArn()
The Amazon Resource Name (ARN) of the resource to which to add tags.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TagResourceRequest.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
The tags to add to the resource.
|
TagResourceRequest.Builder |
toBuilder() |
String |
toString() |
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String resourceArn()
The Amazon Resource Name (ARN) of the resource to which to add tags. Currently, the supported resources are Amazon ECS tasks, services, task definitions, clusters, and container instances.
public List<Tag> tags()
The tags to add to the resource. A tag is an array of key-value pairs. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public TagResourceRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TagResourceRequest.Builder,TagResourceRequest>toBuilder in class EcsRequestpublic static TagResourceRequest.Builder builder()
public static Class<? extends TagResourceRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2019. All rights reserved.