public static final class CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder targetValue(java.lang.Number targetValue)
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.
this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedCapacityMetricSpecification(IResolvable customizedCapacityMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedCapacityMetricSpecification()
customizedCapacityMetricSpecification
- The customized capacity metric specification.this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedCapacityMetricSpecification(CfnScalingPolicy.PredictiveScalingCustomizedCapacityMetricProperty customizedCapacityMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedCapacityMetricSpecification()
customizedCapacityMetricSpecification
- The customized capacity metric specification.this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedLoadMetricSpecification(IResolvable customizedLoadMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedLoadMetricSpecification()
customizedLoadMetricSpecification
- The customized load metric specification.this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedLoadMetricSpecification(CfnScalingPolicy.PredictiveScalingCustomizedLoadMetricProperty customizedLoadMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedLoadMetricSpecification()
customizedLoadMetricSpecification
- The customized load metric specification.this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedScalingMetricSpecification(IResolvable customizedScalingMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedScalingMetricSpecification()
customizedScalingMetricSpecification
- The customized scaling metric specification.this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder customizedScalingMetricSpecification(CfnScalingPolicy.PredictiveScalingCustomizedScalingMetricProperty customizedScalingMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getCustomizedScalingMetricSpecification()
customizedScalingMetricSpecification
- The customized scaling metric specification.this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedLoadMetricSpecification(IResolvable predefinedLoadMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedLoadMetricSpecification()
predefinedLoadMetricSpecification
- The predefined load metric specification.this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedLoadMetricSpecification(CfnScalingPolicy.PredictiveScalingPredefinedLoadMetricProperty predefinedLoadMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedLoadMetricSpecification()
predefinedLoadMetricSpecification
- The predefined load metric specification.this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedMetricPairSpecification(IResolvable predefinedMetricPairSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedMetricPairSpecification()
predefinedMetricPairSpecification
- The predefined metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedMetricPairSpecification(CfnScalingPolicy.PredictiveScalingPredefinedMetricPairProperty predefinedMetricPairSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedMetricPairSpecification()
predefinedMetricPairSpecification
- The predefined metric pair specification from which Amazon EC2 Auto Scaling determines the appropriate scaling metric and load metric to use.this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedScalingMetricSpecification(IResolvable predefinedScalingMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedScalingMetricSpecification()
predefinedScalingMetricSpecification
- The predefined scaling metric specification.this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.Builder predefinedScalingMetricSpecification(CfnScalingPolicy.PredictiveScalingPredefinedScalingMetricProperty predefinedScalingMetricSpecification)
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty.getPredefinedScalingMetricSpecification()
predefinedScalingMetricSpecification
- The predefined scaling metric specification.this
public CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty build()
CfnScalingPolicy.PredictiveScalingMetricSpecificationProperty
java.lang.NullPointerException
- if any required attribute was not provided