Interface TagResourceRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CloudWatchRequest.Builder
,CopyableBuilder<TagResourceRequest.Builder,TagResourceRequest>
,SdkBuilder<TagResourceRequest.Builder,TagResourceRequest>
,SdkPojo
,SdkRequest.Builder
- Enclosing class:
- TagResourceRequest
public static interface TagResourceRequest.Builder extends CloudWatchRequest.Builder, SdkPojo, CopyableBuilder<TagResourceRequest.Builder,TagResourceRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TagResourceRequest.Builder
overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
TagResourceRequest.Builder
overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
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.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
resourceARN
TagResourceRequest.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.
- Parameters:
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.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
TagResourceRequest.Builder tags(Collection<Tag> tags)
The list of key-value pairs to associate with the alarm.
- Parameters:
tags
- The list of key-value pairs to associate with the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
TagResourceRequest.Builder tags(Tag... tags)
The list of key-value pairs to associate with the alarm.
- Parameters:
tags
- The list of key-value pairs to associate with the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
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 viaTag.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed to#tags(List
.) - Parameters:
tags
- a consumer that will call methods onTag.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#tags(java.util.Collection
)
-
overrideConfiguration
TagResourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
overrideConfiguration
TagResourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
-
-