public static interface TagResourceRequest.Builder extends OrganizationsRequest.Builder, SdkPojo, CopyableBuilder<TagResourceRequest.Builder,TagResourceRequest>
| Modifier and Type | Method and Description |
|---|---|
TagResourceRequest.Builder |
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) |
TagResourceRequest.Builder |
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) |
TagResourceRequest.Builder |
resourceId(String resourceId)
The ID of the resource to add a tag to.
|
TagResourceRequest.Builder |
tags(Collection<Tag> tags)
A list of tags to add to the specified resource.
|
TagResourceRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
A list of tags to add to the specified resource.
|
TagResourceRequest.Builder |
tags(Tag... tags)
A list of tags to add to the specified resource.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildTagResourceRequest.Builder resourceId(String resourceId)
The ID of the resource to add a tag to.
resourceId - The ID of the resource to add a tag to.TagResourceRequest.Builder tags(Collection<Tag> tags)
A list of tags to add to the specified resource.
You can specify any of the following taggable resources.
AWS account – specify the account ID number.
Organizational unit – specify the OU ID that begins with ou- and looks similar to:
ou-1a2b-34uvwxyz
Root – specify the root ID that begins with r- and looks similar to: r-1a2b
Policy – specify the policy ID that begins with p- andlooks similar to:
p-12abcdefg3
For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty
string, but you can't set it to null.
If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.
tags - A list of tags to add to the specified resource.
You can specify any of the following taggable resources.
AWS account – specify the account ID number.
Organizational unit – specify the OU ID that begins with ou- and looks similar to:
ou-1a2b-34uvwxyz
Root – specify the root ID that begins with r- and looks similar to:
r-1a2b
Policy – specify the policy ID that begins with p- andlooks similar to:
p-12abcdefg3
For each tag in the list, you must specify both a tag key and a value. You can set the value to an
empty string, but you can't set it to null.
If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.
TagResourceRequest.Builder tags(Tag... tags)
A list of tags to add to the specified resource.
You can specify any of the following taggable resources.
AWS account – specify the account ID number.
Organizational unit – specify the OU ID that begins with ou- and looks similar to:
ou-1a2b-34uvwxyz
Root – specify the root ID that begins with r- and looks similar to: r-1a2b
Policy – specify the policy ID that begins with p- andlooks similar to:
p-12abcdefg3
For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty
string, but you can't set it to null.
If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.
tags - A list of tags to add to the specified resource.
You can specify any of the following taggable resources.
AWS account – specify the account ID number.
Organizational unit – specify the OU ID that begins with ou- and looks similar to:
ou-1a2b-34uvwxyz
Root – specify the root ID that begins with r- and looks similar to:
r-1a2b
Policy – specify the policy ID that begins with p- andlooks similar to:
p-12abcdefg3
For each tag in the list, you must specify both a tag key and a value. You can set the value to an
empty string, but you can't set it to null.
If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.
TagResourceRequest.Builder tags(Consumer<Tag.Builder>... tags)
A list of tags to add to the specified resource.
You can specify any of the following taggable resources.
AWS account – specify the account ID number.
Organizational unit – specify the OU ID that begins with ou- and looks similar to:
ou-1a2b-34uvwxyz
Root – specify the root ID that begins with r- and looks similar to: r-1a2b
Policy – specify the policy ID that begins with p- andlooks similar to:
p-12abcdefg3
For each tag in the list, you must specify both a tag key and a value. You can set the value to an empty
string, but you can't set it to null.
If any one of the tags is invalid or if you exceed the allowed number of tags for an account user, then the entire request fails and the account is not created.
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 overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderTagResourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2021. All rights reserved.