public static interface TargetTrackingMetric.Builder extends SdkPojo, CopyableBuilder<TargetTrackingMetric.Builder,TargetTrackingMetric>
| Modifier and Type | Method and Description |
|---|---|
TargetTrackingMetric.Builder |
dimensions(Collection<TargetTrackingMetricDimension> dimensions)
The dimensions for the metric.
|
TargetTrackingMetric.Builder |
dimensions(Consumer<TargetTrackingMetricDimension.Builder>... dimensions)
The dimensions for the metric.
|
TargetTrackingMetric.Builder |
dimensions(TargetTrackingMetricDimension... dimensions)
The dimensions for the metric.
|
TargetTrackingMetric.Builder |
metricName(String metricName)
The name of the metric.
|
TargetTrackingMetric.Builder |
namespace(String namespace)
The namespace of the metric.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildTargetTrackingMetric.Builder dimensions(Collection<TargetTrackingMetricDimension> dimensions)
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
dimensions - The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services
documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User
Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
TargetTrackingMetric.Builder dimensions(TargetTrackingMetricDimension... dimensions)
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
dimensions - The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services
documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User
Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
TargetTrackingMetric.Builder dimensions(Consumer<TargetTrackingMetricDimension.Builder>... dimensions)
The dimensions for the metric. For the list of available dimensions, see the Amazon Web Services documentation available from the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.
This is a convenience method that creates an instance of theTargetTrackingMetricDimension.Builder
avoiding the need to create one manually via
TargetTrackingMetricDimension.builder().
When the Consumer completes,
SdkBuilder.build()
is called immediately and its result is passed to #dimensions(List.
dimensions - a consumer that will call methods on
TargetTrackingMetricDimension.Builder#dimensions(java.util.Collection) TargetTrackingMetric.Builder metricName(String metricName)
The name of the metric.
metricName - The name of the metric.TargetTrackingMetric.Builder namespace(String namespace)
The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User Guide.
namespace - The namespace of the metric. For more information, see the table in Amazon Web Services services that publish CloudWatch metrics in the Amazon CloudWatch User
Guide.Copyright © 2023. All rights reserved.