public static interface TagResourceRequest.Builder extends SecretsManagerRequest.Builder, CopyableBuilder<TagResourceRequest.Builder,TagResourceRequest>
Modifier and Type | Method and Description |
---|---|
TagResourceRequest.Builder |
requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
Add an optional request override configuration.
|
TagResourceRequest.Builder |
requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
Add an optional request override configuration.
|
TagResourceRequest.Builder |
secretId(String secretId)
The identifier for the secret that you want to attach tags to.
|
TagResourceRequest.Builder |
tags(Collection<Tag> tags)
The tags to attach to the secret.
|
TagResourceRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
The tags to attach to the secret.
|
TagResourceRequest.Builder |
tags(Tag... tags)
The tags to attach to the secret.
|
build
requestOverrideConfig
copy
apply, build
TagResourceRequest.Builder secretId(String secretId)
The identifier for the secret that you want to attach tags to. You can specify either the Amazon Resource Name (ARN) or the friendly name of the secret.
secretId
- The identifier for the secret that you want to attach tags to. You can specify either the Amazon
Resource Name (ARN) or the friendly name of the secret.TagResourceRequest.Builder tags(Collection<Tag> tags)
The tags to attach to the secret. Each element in the list consists of a Key
and a
Value
.
This parameter to the API requires a JSON text string argument. For information on how to format a JSON
parameter for the various command line tool environments, see Using JSON
for Parameters in the AWS CLI User Guide. For the AWS CLI, you can also use the syntax:
--Tags Key="Key1",Value="Value1",Key="Key2",Value="Value2"[,…]
tags
- The tags to attach to the secret. Each element in the list consists of a Key
and a
Value
.
This parameter to the API requires a JSON text string argument. For information on how to format a
JSON parameter for the various command line tool environments, see Using
JSON for Parameters in the AWS CLI User Guide. For the AWS CLI, you can also use the
syntax: --Tags Key="Key1",Value="Value1",Key="Key2",Value="Value2"[,…]
TagResourceRequest.Builder tags(Tag... tags)
The tags to attach to the secret. Each element in the list consists of a Key
and a
Value
.
This parameter to the API requires a JSON text string argument. For information on how to format a JSON
parameter for the various command line tool environments, see Using JSON
for Parameters in the AWS CLI User Guide. For the AWS CLI, you can also use the syntax:
--Tags Key="Key1",Value="Value1",Key="Key2",Value="Value2"[,…]
tags
- The tags to attach to the secret. Each element in the list consists of a Key
and a
Value
.
This parameter to the API requires a JSON text string argument. For information on how to format a
JSON parameter for the various command line tool environments, see Using
JSON for Parameters in the AWS CLI User Guide. For the AWS CLI, you can also use the
syntax: --Tags Key="Key1",Value="Value1",Key="Key2",Value="Value2"[,…]
TagResourceRequest.Builder tags(Consumer<Tag.Builder>... tags)
The tags to attach to the secret. Each element in the list consists of a Key
and a
Value
.
This parameter to the API requires a JSON text string argument. For information on how to format a JSON
parameter for the various command line tool environments, see Using JSON
for Parameters in the AWS CLI User Guide. For the AWS CLI, you can also use the syntax:
--Tags Key="Key1",Value="Value1",Key="Key2",Value="Value2"[,…]
List.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)
TagResourceRequest.Builder requestOverrideConfig(AwsRequestOverrideConfig awsRequestOverrideConfig)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
awsRequestOverrideConfig
- The override configuration.TagResourceRequest.Builder requestOverrideConfig(Consumer<AwsRequestOverrideConfig.Builder> builderConsumer)
AwsRequest.Builder
requestOverrideConfig
in interface AwsRequest.Builder
builderConsumer
- A Consumer
to which an empty AwsRequestOverrideConfig.Builder
will be given.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.