Interface UpdateResourceMetricsConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchRequest.Builder,CopyableBuilder<UpdateResourceMetricsConfigurationRequest.Builder,,UpdateResourceMetricsConfigurationRequest> SdkBuilder<UpdateResourceMetricsConfigurationRequest.Builder,,UpdateResourceMetricsConfigurationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateResourceMetricsConfigurationRequest
-
Method Summary
Modifier and TypeMethodDescriptionmetricSelections(Collection<ResourceMetricSelection> metricSelections) Specifies which metrics Amazon CloudWatch collects for the resource.metricSelections(Consumer<ResourceMetricSelection.Builder>... metricSelections) Specifies which metrics Amazon CloudWatch collects for the resource.metricSelections(ResourceMetricSelection... metricSelections) Specifies which metrics Amazon CloudWatch collects for the resource.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resourceArn(String resourceArn) The Amazon Resource Name (ARN) of the Amazon Web Services resource to update the resource metrics configuration for.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 Amazon Resource Name (ARN) of the Amazon Web Services resource to update the resource metrics configuration for.
- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the Amazon Web Services resource to update the resource metrics configuration for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSelections
UpdateResourceMetricsConfigurationRequest.Builder metricSelections(Collection<ResourceMetricSelection> metricSelections) Specifies which metrics Amazon CloudWatch collects for the resource. The selections that you provide completely replace any existing metric selections.
If you omit this parameter, Amazon CloudWatch removes any existing metric selection filter and collects all available detailed metrics for the resource.
- Parameters:
metricSelections- Specifies which metrics Amazon CloudWatch collects for the resource. The selections that you provide completely replace any existing metric selections.If you omit this parameter, Amazon CloudWatch removes any existing metric selection filter and collects all available detailed metrics for the resource.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSelections
UpdateResourceMetricsConfigurationRequest.Builder metricSelections(ResourceMetricSelection... metricSelections) Specifies which metrics Amazon CloudWatch collects for the resource. The selections that you provide completely replace any existing metric selections.
If you omit this parameter, Amazon CloudWatch removes any existing metric selection filter and collects all available detailed metrics for the resource.
- Parameters:
metricSelections- Specifies which metrics Amazon CloudWatch collects for the resource. The selections that you provide completely replace any existing metric selections.If you omit this parameter, Amazon CloudWatch removes any existing metric selection filter and collects all available detailed metrics for the resource.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSelections
UpdateResourceMetricsConfigurationRequest.Builder metricSelections(Consumer<ResourceMetricSelection.Builder>... metricSelections) Specifies which metrics Amazon CloudWatch collects for the resource. The selections that you provide completely replace any existing metric selections.
If you omit this parameter, Amazon CloudWatch removes any existing metric selection filter and collects all available detailed metrics for the resource.
This is a convenience method that creates an instance of theResourceMetricSelection.Builderavoiding the need to create one manually viaResourceMetricSelection.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tometricSelections(List<ResourceMetricSelection>).- Parameters:
metricSelections- a consumer that will call methods onResourceMetricSelection.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateResourceMetricsConfigurationRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateResourceMetricsConfigurationRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-