public static interface TagResourceRequest.Builder extends CloudWatchRequest.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 |
resourceARN(String resourceARN)
The ARN of the CloudWatch resource that you're adding tags to.
|
TagResourceRequest.Builder |
tags(Collection<Tag> tags)
The list of key-value pairs to associate with the alarm.
|
TagResourceRequest.Builder |
tags(Consumer<Tag.Builder>... tags)
The list of key-value pairs to associate with the alarm.
|
TagResourceRequest.Builder |
tags(Tag... tags)
The list of key-value pairs to associate with the alarm.
|
buildoverrideConfigurationequalsBySdkFields, sdkFieldscopyapplyMutation, buildTagResourceRequest.Builder resourceARN(String resourceARN)
The ARN of the CloudWatch resource that you're adding tags to.
The ARN format of an alarm is
arn:aws:cloudwatch:Region:account-id:alarm:alarm-name
The ARN format of a Contributor Insights rule is
arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name
For more information about ARN format, see Resource Types Defined by Amazon CloudWatch in the Amazon Web Services General Reference.
resourceARN - The ARN of the CloudWatch resource that you're adding tags to.
The ARN format of an alarm is
arn:aws:cloudwatch:Region:account-id:alarm:alarm-name
The ARN format of a Contributor Insights rule is
arn:aws:cloudwatch:Region:account-id:insight-rule:insight-rule-name
For more information about ARN format, see Resource Types Defined by Amazon CloudWatch in the Amazon Web Services General Reference.
TagResourceRequest.Builder tags(Collection<Tag> tags)
The list of key-value pairs to associate with the alarm.
tags - The list of key-value pairs to associate with the alarm.TagResourceRequest.Builder tags(Tag... tags)
The list of key-value pairs to associate with the alarm.
tags - The list of key-value pairs to associate with the alarm.TagResourceRequest.Builder tags(Consumer<Tag.Builder>... tags)
The list of key-value pairs to associate with the alarm.
This is a convenience method that creates an instance of theTag.Builder avoiding the need to create one manually
via Tag.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately and its
result is passed to #tags(List.
tags - a consumer that will call methods on
Tag.Builder#tags(java.util.Collection) TagResourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
overrideConfiguration in interface AwsRequest.BuilderTagResourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
overrideConfiguration in interface AwsRequest.BuilderCopyright © 2023. All rights reserved.