Class CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.autoscalingplans.mixins.CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty>
- Enclosing interface:
CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty
@Stability(Stable)
public static final class CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty>
-
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.CustomizedLoadMetricSpecificationProperty.Builder dimensions(IResolvable dimensions) Sets the value ofCfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty.getDimensions()- Parameters:
dimensions- The dimensions of the metric. Conditional: If you published your metric with dimensions, you must specify the same dimensions in your customized load metric specification.- Returns:
this
-
dimensions
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty.Builder dimensions(List<? extends Object> dimensions) Sets the value ofCfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty.getDimensions()- Parameters:
dimensions- The dimensions of the metric. Conditional: If you published your metric with dimensions, you must specify the same dimensions in your customized load metric specification.- Returns:
this
-
metricName
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty.Builder metricName(String metricName) Sets the value ofCfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty.getMetricName()- Parameters:
metricName- The name of the metric.- Returns:
this
-
namespace
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty.Builder namespace(String namespace) - Parameters:
namespace- The namespace of the metric.- Returns:
this
-
statistic
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty.Builder statistic(String statistic) - Parameters:
statistic- The statistic of the metric. Allowed Values :Sum- Returns:
this
-
unit
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty.Builder unit(String unit) - Parameters:
unit- The unit of the metric.- Returns:
this
-
build
@Stability(Stable) public CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty>- Returns:
- a new instance of
CfnScalingPlanPropsMixin.CustomizedLoadMetricSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-