Interface TagResourceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchRequest.Builder,CopyableBuilder<TagResourceRequest.Builder,,TagResourceRequest> SdkBuilder<TagResourceRequest.Builder,,TagResourceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
- TagResourceRequest
-
Method Summary
Modifier and TypeMethodDescriptionoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) resourceARN(String resourceARN) The ARN of the CloudWatch resource that you're adding tags to.tags(Collection<Tag> tags) The list of key-value pairs to associate with the alarm.tags(Consumer<Tag.Builder>... tags) The list of key-value pairs to associate with the alarm.The list of key-value pairs to associate with the alarm.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.cloudwatch.model.CloudWatchRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
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-nameThe ARN format of a Contributor Insights rule is
arn:aws:cloudwatch:Region:account-id:insight-rule/insight-rule-nameThe ARN format of a dashboard is
arn:aws:cloudwatch::account-id:dashboard/dashboard-nameThe ARN format of a metric stream is
arn:aws:cloudwatch:Region:account-id:metric-stream/metric-stream-nameFor 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-nameThe ARN format of a Contributor Insights rule is
arn:aws:cloudwatch:Region:account-id:insight-rule/insight-rule-nameThe ARN format of a dashboard is
arn:aws:cloudwatch::account-id:dashboard/dashboard-nameThe ARN format of a metric stream is
arn:aws:cloudwatch:Region:account-id:metric-stream/metric-stream-nameFor 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
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
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
The list of key-value pairs to associate with the alarm.
This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- 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:
-
overrideConfiguration
TagResourceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
TagResourceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) - Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-