Class CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.autoscaling.CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty>
- Enclosing interface:
- CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty
@Stability(Stable)
public static final class CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.customizedCapacityMetricSpecification
(IResolvable customizedCapacityMetricSpecification) customizedCapacityMetricSpecification
(CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty customizedCapacityMetricSpecification) customizedLoadMetricSpecification
(IResolvable customizedLoadMetricSpecification) customizedLoadMetricSpecification
(CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty customizedLoadMetricSpecification) customizedScalingMetricSpecification
(IResolvable customizedScalingMetricSpecification) customizedScalingMetricSpecification
(CfnScalingPolicy.PredictiveScalingCustomizedScalingMetricProperty customizedScalingMetricSpecification) predefinedLoadMetricSpecification
(IResolvable predefinedLoadMetricSpecification) predefinedLoadMetricSpecification
(CfnScalingPolicy.PredictiveScalingPredefinedLoadMetricProperty predefinedLoadMetricSpecification) predefinedMetricPairSpecification
(IResolvable predefinedMetricPairSpecification) predefinedMetricPairSpecification
(CfnScalingPolicy.PredictiveScalingPredefinedMetricPairProperty predefinedMetricPairSpecification) predefinedScalingMetricSpecification
(IResolvable predefinedScalingMetricSpecification) predefinedScalingMetricSpecification
(CfnScalingPolicy.PredictiveScalingPredefinedScalingMetricProperty predefinedScalingMetricSpecification) targetValue
(Number targetValue)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
targetValue
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder targetValue(Number targetValue) - Parameters:
targetValue
- Specifies the target utilization. This parameter is required.Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval.
- Returns:
this
-
customizedCapacityMetricSpecification
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedCapacityMetricSpecification(IResolvable customizedCapacityMetricSpecification) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedCapacityMetricSpecification()
- Parameters:
customizedCapacityMetricSpecification
- The customized capacity metric specification.- Returns:
this
-
customizedCapacityMetricSpecification
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedCapacityMetricSpecification(CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty customizedCapacityMetricSpecification) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedCapacityMetricSpecification()
- Parameters:
customizedCapacityMetricSpecification
- The customized capacity metric specification.- Returns:
this
-
customizedLoadMetricSpecification
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedLoadMetricSpecification(IResolvable customizedLoadMetricSpecification) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedLoadMetricSpecification()
- Parameters:
customizedLoadMetricSpecification
- The customized load metric specification.- Returns:
this
-
customizedLoadMetricSpecification
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedLoadMetricSpecification(CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty customizedLoadMetricSpecification) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedLoadMetricSpecification()
- Parameters:
customizedLoadMetricSpecification
- The customized load metric specification.- Returns:
this
-
customizedScalingMetricSpecification
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedScalingMetricSpecification(IResolvable customizedScalingMetricSpecification) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedScalingMetricSpecification()
- Parameters:
customizedScalingMetricSpecification
- The customized scaling metric specification.- Returns:
this
-
customizedScalingMetricSpecification
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedScalingMetricSpecification(CfnScalingPolicy.PredictiveScalingCustomizedScalingMetricProperty customizedScalingMetricSpecification) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedScalingMetricSpecification()
- Parameters:
customizedScalingMetricSpecification
- The customized scaling metric specification.- Returns:
this
-
predefinedLoadMetricSpecification
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedLoadMetricSpecification(IResolvable predefinedLoadMetricSpecification) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedLoadMetricSpecification()
- Parameters:
predefinedLoadMetricSpecification
- The predefined load metric specification.- Returns:
this
-
predefinedLoadMetricSpecification
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedLoadMetricSpecification(CfnScalingPolicy.PredictiveScalingPredefinedLoadMetricProperty predefinedLoadMetricSpecification) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedLoadMetricSpecification()
- Parameters:
predefinedLoadMetricSpecification
- The predefined load metric specification.- Returns:
this
-
predefinedMetricPairSpecification
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedMetricPairSpecification(IResolvable predefinedMetricPairSpecification) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedMetricPairSpecification()
- Parameters:
predefinedMetricPairSpecification
- The predefined metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.- Returns:
this
-
predefinedMetricPairSpecification
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedMetricPairSpecification(CfnScalingPolicy.PredictiveScalingPredefinedMetricPairProperty predefinedMetricPairSpecification) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedMetricPairSpecification()
- Parameters:
predefinedMetricPairSpecification
- The predefined metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.- Returns:
this
-
predefinedScalingMetricSpecification
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedScalingMetricSpecification(IResolvable predefinedScalingMetricSpecification) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedScalingMetricSpecification()
- Parameters:
predefinedScalingMetricSpecification
- The predefined scaling metric specification.- Returns:
this
-
predefinedScalingMetricSpecification
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedScalingMetricSpecification(CfnScalingPolicy.PredictiveScalingPredefinedScalingMetricProperty predefinedScalingMetricSpecification) Sets the value ofCfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedScalingMetricSpecification()
- Parameters:
predefinedScalingMetricSpecification
- The predefined scaling metric specification.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty>
- Returns:
- a new instance of
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-