Class CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.applicationautoscaling.CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty>
- Enclosing interface:
CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty
@Stability(Stable)
public static final class CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customizedCapacityMetricSpecification(CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty customizedCapacityMetricSpecification) customizedCapacityMetricSpecification(IResolvable customizedCapacityMetricSpecification) customizedLoadMetricSpecification(CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedLoadMetricProperty customizedLoadMetricSpecification) customizedLoadMetricSpecification(IResolvable customizedLoadMetricSpecification) customizedScalingMetricSpecification(CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedScalingMetricProperty customizedScalingMetricSpecification) customizedScalingMetricSpecification(IResolvable customizedScalingMetricSpecification) predefinedLoadMetricSpecification(CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedLoadMetricProperty predefinedLoadMetricSpecification) predefinedLoadMetricSpecification(IResolvable predefinedLoadMetricSpecification) predefinedMetricPairSpecification(CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedMetricPairProperty predefinedMetricPairSpecification) predefinedMetricPairSpecification(IResolvable predefinedMetricPairSpecification) predefinedScalingMetricSpecification(CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedScalingMetricProperty predefinedScalingMetricSpecification) predefinedScalingMetricSpecification(IResolvable predefinedScalingMetricSpecification) targetValue(Number targetValue)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customizedCapacityMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder customizedCapacityMetricSpecification(IResolvable customizedCapacityMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getCustomizedCapacityMetricSpecification()- Parameters:
customizedCapacityMetricSpecification- The customized capacity metric specification.- Returns:
this
-
customizedCapacityMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder customizedCapacityMetricSpecification(CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedCapacityMetricProperty customizedCapacityMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getCustomizedCapacityMetricSpecification()- Parameters:
customizedCapacityMetricSpecification- The customized capacity metric specification.- Returns:
this
-
customizedLoadMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder customizedLoadMetricSpecification(IResolvable customizedLoadMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getCustomizedLoadMetricSpecification()- Parameters:
customizedLoadMetricSpecification- The customized load metric specification.- Returns:
this
-
customizedLoadMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder customizedLoadMetricSpecification(CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedLoadMetricProperty customizedLoadMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getCustomizedLoadMetricSpecification()- Parameters:
customizedLoadMetricSpecification- The customized load metric specification.- Returns:
this
-
customizedScalingMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder customizedScalingMetricSpecification(IResolvable customizedScalingMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getCustomizedScalingMetricSpecification()- Parameters:
customizedScalingMetricSpecification- The customized scaling metric specification.- Returns:
this
-
customizedScalingMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder customizedScalingMetricSpecification(CfnScalingPolicyPropsMixin.PredictiveScalingCustomizedScalingMetricProperty customizedScalingMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getCustomizedScalingMetricSpecification()- Parameters:
customizedScalingMetricSpecification- The customized scaling metric specification.- Returns:
this
-
predefinedLoadMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder predefinedLoadMetricSpecification(IResolvable predefinedLoadMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getPredefinedLoadMetricSpecification()- Parameters:
predefinedLoadMetricSpecification- The predefined load metric specification.- Returns:
this
-
predefinedLoadMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder predefinedLoadMetricSpecification(CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedLoadMetricProperty predefinedLoadMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getPredefinedLoadMetricSpecification()- Parameters:
predefinedLoadMetricSpecification- The predefined load metric specification.- Returns:
this
-
predefinedMetricPairSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder predefinedMetricPairSpecification(IResolvable predefinedMetricPairSpecification) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getPredefinedMetricPairSpecification()- Parameters:
predefinedMetricPairSpecification- The predefined metric pair specification that determines the appropriate scaling metric and load metric to use.- Returns:
this
-
predefinedMetricPairSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder predefinedMetricPairSpecification(CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedMetricPairProperty predefinedMetricPairSpecification) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getPredefinedMetricPairSpecification()- Parameters:
predefinedMetricPairSpecification- The predefined metric pair specification that determines the appropriate scaling metric and load metric to use.- Returns:
this
-
predefinedScalingMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder predefinedScalingMetricSpecification(IResolvable predefinedScalingMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getPredefinedScalingMetricSpecification()- Parameters:
predefinedScalingMetricSpecification- The predefined scaling metric specification.- Returns:
this
-
predefinedScalingMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder predefinedScalingMetricSpecification(CfnScalingPolicyPropsMixin.PredictiveScalingPredefinedScalingMetricProperty predefinedScalingMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getPredefinedScalingMetricSpecification()- Parameters:
predefinedScalingMetricSpecification- The predefined scaling metric specification.- Returns:
this
-
targetValue
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.Builder targetValue(Number targetValue) Sets the value ofCfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty.getTargetValue()- Parameters:
targetValue- Specifies the target utilization.- Returns:
this
-
build
@Stability(Stable) public CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty>- Returns:
- a new instance of
CfnScalingPolicyPropsMixin.PredictiveScalingMetricSpecificationProperty - Throws:
NullPointerException- if any required attribute was not provided
-