Class CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.autoscalingplans.CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty>
- Enclosing interface:
CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty
@Stability(Stable)
public static final class CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dimensions(List<? extends Object> dimensions) dimensions(IResolvable dimensions) metricName(String metricName)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dimensions
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.Builder dimensions(IResolvable dimensions) Sets the value ofCfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.getDimensions()- Parameters:
dimensions- The dimensions of the metric. Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.- Returns:
this
-
dimensions
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.Builder dimensions(List<? extends Object> dimensions) Sets the value ofCfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.getDimensions()- Parameters:
dimensions- The dimensions of the metric. Conditional: If you published your metric with dimensions, you must specify the same dimensions in your scaling policy.- Returns:
this
-
metricName
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.Builder metricName(String metricName) Sets the value ofCfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.getMetricName()- Parameters:
metricName- The name of the metric. To get the exact metric name, namespace, and dimensions, inspect the Metrics object that is returned by a call to ListMetrics .- Returns:
this
-
namespace
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.Builder namespace(String namespace) Sets the value ofCfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.getNamespace()- Parameters:
namespace- The namespace of the metric.- Returns:
this
-
statistic
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.Builder statistic(String statistic) Sets the value ofCfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.getStatistic()- Parameters:
statistic- The statistic of the metric.- Returns:
this
-
unit
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty.Builder unit(String unit) - Parameters:
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 .- Returns:
this
-
build
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty>- Returns:
- a new instance of
CfnScalingPlanPropsMixin.CustomizedScalingMetricSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-