Class CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.applicationautoscaling.CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty>
- Enclosing interface:
CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty
@Stability(Stable)
public static final class CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.maxCapacityBreachBehavior(String maxCapacityBreachBehavior) maxCapacityBuffer(Number maxCapacityBuffer) metricSpecifications(List<? extends Object> metricSpecifications) metricSpecifications(IResolvable metricSpecifications) Sets the value ofCfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.getMode()schedulingBufferTime(Number schedulingBufferTime)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
metricSpecifications
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.Builder metricSpecifications(IResolvable metricSpecifications) Sets the value ofCfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.getMetricSpecifications()- Parameters:
metricSpecifications- the value to be set. This parameter is required.- Returns:
this
-
metricSpecifications
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.Builder metricSpecifications(List<? extends Object> metricSpecifications) Sets the value ofCfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.getMetricSpecifications()- Parameters:
metricSpecifications- the value to be set. This parameter is required.- Returns:
this
-
maxCapacityBreachBehavior
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.Builder maxCapacityBreachBehavior(String maxCapacityBreachBehavior) Sets the value ofCfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.getMaxCapacityBreachBehavior()- Parameters:
maxCapacityBreachBehavior- the value to be set.- Returns:
this
-
maxCapacityBuffer
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.Builder maxCapacityBuffer(Number maxCapacityBuffer) Sets the value ofCfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.getMaxCapacityBuffer()- Parameters:
maxCapacityBuffer- the value to be set.- Returns:
this
-
mode
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.Builder mode(String mode) Sets the value ofCfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.getMode()- Parameters:
mode- the value to be set.- Returns:
this
-
schedulingBufferTime
@Stability(Stable) public CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.Builder schedulingBufferTime(Number schedulingBufferTime) Sets the value ofCfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty.getSchedulingBufferTime()- Parameters:
schedulingBufferTime- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty>- Returns:
- a new instance of
CfnScalingPolicy.PredictiveScalingPolicyConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-