Interface CreateResourceMetricsConfigurationRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CloudWatchRequest.Builder,CopyableBuilder<CreateResourceMetricsConfigurationRequest.Builder,,CreateResourceMetricsConfigurationRequest> SdkBuilder<CreateResourceMetricsConfigurationRequest.Builder,,CreateResourceMetricsConfigurationRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateResourceMetricsConfigurationRequest
-
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 enable detailed monitoring 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 enable detailed monitoring for.
- Parameters:
resourceArn- The Amazon Resource Name (ARN) of the Amazon Web Services resource to enable detailed monitoring for.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSelections
CreateResourceMetricsConfigurationRequest.Builder metricSelections(Collection<ResourceMetricSelection> metricSelections) Specifies which metrics Amazon CloudWatch collects for the resource. If you omit this parameter, Amazon CloudWatch collects all available detailed metrics for the resource.
- Parameters:
metricSelections- Specifies which metrics Amazon CloudWatch collects for the resource. If you omit this parameter, Amazon CloudWatch collects all available detailed metrics for the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSelections
CreateResourceMetricsConfigurationRequest.Builder metricSelections(ResourceMetricSelection... metricSelections) Specifies which metrics Amazon CloudWatch collects for the resource. If you omit this parameter, Amazon CloudWatch collects all available detailed metrics for the resource.
- Parameters:
metricSelections- Specifies which metrics Amazon CloudWatch collects for the resource. If you omit this parameter, Amazon CloudWatch collects all available detailed metrics for the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metricSelections
CreateResourceMetricsConfigurationRequest.Builder metricSelections(Consumer<ResourceMetricSelection.Builder>... metricSelections) Specifies which metrics Amazon CloudWatch collects for the resource. If you omit this parameter, Amazon CloudWatch 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
CreateResourceMetricsConfigurationRequest.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
CreateResourceMetricsConfigurationRequest.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.
-