public static interface AddTagsToResourceRequest.Builder extends ElastiCacheRequest.Builder, CopyableBuilder<AddTagsToResourceRequest.Builder,AddTagsToResourceRequest>
Modifier and Type | Method and Description |
---|---|
AddTagsToResourceRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
Add an optional request override configuration.
|
AddTagsToResourceRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
Add an optional request override configuration.
|
AddTagsToResourceRequest.Builder |
resourceName(String resourceName)
The Amazon Resource Name (ARN) of the resource to which the tags are to be added, for example
arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster or
arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot . |
AddTagsToResourceRequest.Builder |
tags(Collection<Tag> tags)
A list of cost allocation tags to be added to this resource.
|
AddTagsToResourceRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
A list of cost allocation tags to be added to this resource.
|
AddTagsToResourceRequest.Builder |
tags(Tag... tags)
A list of cost allocation tags to be added to this resource.
|
build
overrideConfiguration
copy
applyMutation, build
AddTagsToResourceRequest.Builder resourceName(String resourceName)
The Amazon Resource Name (ARN) of the resource to which the tags are to be added, for example
arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster
or
arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot
. ElastiCache resources are
cluster and snapshot.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
resourceName
- The Amazon Resource Name (ARN) of the resource to which the tags are to be added, for example
arn:aws:elasticache:us-west-2:0123456789:cluster:myCluster
or
arn:aws:elasticache:us-west-2:0123456789:snapshot:mySnapshot
. ElastiCache resources are
cluster and snapshot.
For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces.
AddTagsToResourceRequest.Builder tags(Collection<Tag> tags)
A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value.
tags
- A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must
be accompanied by a tag value.AddTagsToResourceRequest.Builder tags(Tag... tags)
A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value.
tags
- A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must
be accompanied by a tag value.AddTagsToResourceRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of cost allocation tags to be added to this resource. A tag is a key-value pair. A tag key must be accompanied by a tag value.
This is a convenience that creates an instance of theList.Builder
avoiding the need to create
one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its result
is passed to #tags(List)
.tags
- a consumer that will call methods on List.Builder
#tags(List)
AddTagsToResourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
overrideConfiguration
- The override configuration.AddTagsToResourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
AwsRequest.Builder
overrideConfiguration
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfiguration.Builder
will be
given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.