Class CfnScalingPlan.CustomizedLoadMetricSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.autoscalingplans.CfnScalingPlan.CustomizedLoadMetricSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPlan.CustomizedLoadMetricSpecificationProperty>
- Enclosing interface:
CfnScalingPlan.CustomizedLoadMetricSpecificationProperty
@Stability(Stable)
public static final class CfnScalingPlan.CustomizedLoadMetricSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPlan.CustomizedLoadMetricSpecificationProperty>
A builder for
CfnScalingPlan.CustomizedLoadMetricSpecificationProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.dimensions(List<? extends Object> dimensions) Sets the value ofCfnScalingPlan.CustomizedLoadMetricSpecificationProperty.getDimensions()dimensions(IResolvable dimensions) Sets the value ofCfnScalingPlan.CustomizedLoadMetricSpecificationProperty.getDimensions()metricName(String metricName) Sets the value ofCfnScalingPlan.CustomizedLoadMetricSpecificationProperty.getMetricName()Sets the value ofCfnScalingPlan.CustomizedLoadMetricSpecificationProperty.getNamespace()Sets the value ofCfnScalingPlan.CustomizedLoadMetricSpecificationProperty.getStatistic()Sets the value ofCfnScalingPlan.CustomizedLoadMetricSpecificationProperty.getUnit()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricName
@Stability(Stable) public CfnScalingPlan.CustomizedLoadMetricSpecificationProperty.Builder metricName(String metricName) Sets the value ofCfnScalingPlan.CustomizedLoadMetricSpecificationProperty.getMetricName()- Parameters:
metricName- The name of the metric. This parameter is required.- Returns:
this
-
namespace
@Stability(Stable) public CfnScalingPlan.CustomizedLoadMetricSpecificationProperty.Builder namespace(String namespace) Sets the value ofCfnScalingPlan.CustomizedLoadMetricSpecificationProperty.getNamespace()- Parameters:
namespace- The namespace of the metric. This parameter is required.- Returns:
this
-
statistic
@Stability(Stable) public CfnScalingPlan.CustomizedLoadMetricSpecificationProperty.Builder statistic(String statistic) Sets the value ofCfnScalingPlan.CustomizedLoadMetricSpecificationProperty.getStatistic()- Parameters:
statistic- The statistic of the metric. This parameter is required. Allowed Values :Sum- Returns:
this
-
dimensions
@Stability(Stable) public CfnScalingPlan.CustomizedLoadMetricSpecificationProperty.Builder dimensions(IResolvable dimensions) Sets the value ofCfnScalingPlan.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 CfnScalingPlan.CustomizedLoadMetricSpecificationProperty.Builder dimensions(List<? extends Object> dimensions) Sets the value ofCfnScalingPlan.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
-
unit
@Stability(Stable) public CfnScalingPlan.CustomizedLoadMetricSpecificationProperty.Builder unit(String unit) Sets the value ofCfnScalingPlan.CustomizedLoadMetricSpecificationProperty.getUnit()- Parameters:
unit- The unit of the metric.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPlan.CustomizedLoadMetricSpecificationProperty>- Returns:
- a new instance of
CfnScalingPlan.CustomizedLoadMetricSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-