CopyableBuilder<TagResourceRequest.Builder,TagResourceRequest>
, SdkBuilder<TagResourceRequest.Builder,TagResourceRequest>
public static interface TagResourceRequest.Builder extends CopyableBuilder<TagResourceRequest.Builder,TagResourceRequest>
Modifier and Type | Method | Description |
---|---|---|
TagResourceRequest.Builder |
keyId(String keyId) |
A unique identifier for the CMK you are tagging.
|
TagResourceRequest.Builder |
tags(Collection<Tag> tags) |
One or more tags.
|
TagResourceRequest.Builder |
tags(Tag... tags) |
One or more tags.
|
copy
apply, build
TagResourceRequest.Builder keyId(String keyId)
A unique identifier for the CMK you are tagging. You can use the unique key ID or the Amazon Resource Name (ARN) of the CMK. Examples:
Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
keyId
- A unique identifier for the CMK you are tagging. You can use the unique key ID or the Amazon Resource
Name (ARN) of the CMK. Examples:
Unique key ID: 1234abcd-12ab-34cd-56ef-1234567890ab
Key ARN: arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab
TagResourceRequest.Builder tags(Collection<Tag> tags)
One or more tags. Each tag consists of a tag key and a tag value.
tags
- One or more tags. Each tag consists of a tag key and a tag value.TagResourceRequest.Builder tags(Tag... tags)
One or more tags. Each tag consists of a tag key and a tag value.
NOTE: This method appends the values to the existing list (if any). Use
#setTags(java.util.Collection)
or #withTags(java.util.Collection)
if you want to override the
existing values.
tags
- One or more tags. Each tag consists of a tag key and a tag value.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.