@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.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 customized scaling metric specification.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 customized scaling metric specification.this@Stability(value=Stable) public CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.Builder unit(String unit)
CfnScalingPlan.CustomizedScalingMetricSpecificationProperty.getUnit()unit - The unit of the metric.this@Stability(value=Stable) public CfnScalingPlan.CustomizedScalingMetricSpecificationProperty build()
build in interface software.amazon.jsii.Builder<CfnScalingPlan.CustomizedScalingMetricSpecificationProperty>CfnScalingPlan.CustomizedScalingMetricSpecificationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.