@Generated(value="software.amazon.awssdk:codegen") public final class TagResourcesRequest extends ResourceGroupsTaggingApiRequest implements ToCopyableBuilder<TagResourcesRequest.Builder,TagResourcesRequest>
Modifier and Type | Class and Description |
---|---|
static interface |
TagResourcesRequest.Builder |
Modifier and Type | Method and Description |
---|---|
static TagResourcesRequest.Builder |
builder() |
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
List<String> |
resourceARNList()
A list of ARNs.
|
static Class<? extends TagResourcesRequest.Builder> |
serializableBuilderClass() |
Map<String,String> |
tags()
The tags that you want to add to the specified resources.
|
TagResourcesRequest.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public List<String> resourceARNList()
A list of ARNs. An ARN (Amazon Resource Name) uniquely identifies a resource. You can specify a minimum of 1 and a maximum of 20 ARNs (resources) to tag. An ARN can be set to a maximum of 1600 characters. For more information, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Map<String,String> tags()
The tags that you want to add to the specified resources. A tag consists of a key and a value that you define.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public TagResourcesRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<TagResourcesRequest.Builder,TagResourcesRequest>
toBuilder
in class ResourceGroupsTaggingApiRequest
public static TagResourcesRequest.Builder builder()
public static Class<? extends TagResourcesRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.