@Stability(value=Stable) public static final class CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnScalingPlan.CustomizedScalingMetricSpecificationProperty>
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CfnScalingPlan.CustomizedScalingMetricSpecificationProperty |
build()
Builds the configured instance.
|
CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder |
dimensions(IResolvable dimensions)
|
CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder |
dimensions(List<? extends Object> dimensions)
|
CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder |
metricName(String metricName)
|
CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder |
namespace(String namespace)
|
CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder |
statistic(String statistic)
|
CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder |
unit(String unit)
Sets the value of
CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.getUnit() |
@Stability(value=Stable) public CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder metricName(String metricName)
metricName
- The name of the metric. This parameter is required.
To get the exact metric name, namespace, and dimensions, inspect the Metrics object that is returned by a call to ListMetrics .this
@Stability(value=Stable) public CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder namespace(String namespace)
namespace
- The namespace of the metric. This parameter is required.this
@Stability(value=Stable) public CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder statistic(String statistic)
statistic
- The statistic of the metric. This parameter is required.this
@Stability(value=Stable) public CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder dimensions(IResolvable dimensions)
dimensions
- The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.this
@Stability(value=Stable) public CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder dimensions(List<? extends Object> dimensions)
dimensions
- The dimensions of the metric.
Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.this
@Stability(value=Stable) public CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder unit(String unit)
CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.getUnit()
unit
- The unit of the metric.
For a complete list of the units that CloudWatch supports, see the MetricDatum data type in the Amazon CloudWatch API Reference .this
@Stability(value=Stable) public CfnScalingPlan.CustomizedScalingMetricSpecificationProperty build()
build
in interface software.amazon.jsii.Builder<CfnScalingPlan.CustomizedScalingMetricSpecificationProperty>
CfnScalingPlan.CustomizedScalingMetricSpecificationProperty
NullPointerException
- if any required attribute was not providedCopyright © 2023. All rights reserved.