public static final class CfnLayer.LoadBasedAutoScalingProperty.Builder
extends java.lang.Object
CfnLayer.LoadBasedAutoScalingProperty
Constructor and Description |
---|
Builder() |
public CfnLayer.LoadBasedAutoScalingProperty.Builder downScaling(IResolvable downScaling)
CfnLayer.LoadBasedAutoScalingProperty.getDownScaling()
downScaling
- An `AutoScalingThresholds` object that describes the downscaling configuration, which defines how and when AWS OpsWorks Stacks reduces the number of instances.this
public CfnLayer.LoadBasedAutoScalingProperty.Builder downScaling(CfnLayer.AutoScalingThresholdsProperty downScaling)
CfnLayer.LoadBasedAutoScalingProperty.getDownScaling()
downScaling
- An `AutoScalingThresholds` object that describes the downscaling configuration, which defines how and when AWS OpsWorks Stacks reduces the number of instances.this
public CfnLayer.LoadBasedAutoScalingProperty.Builder enable(java.lang.Boolean enable)
CfnLayer.LoadBasedAutoScalingProperty.getEnable()
enable
- Whether load-based auto scaling is enabled for the layer.this
public CfnLayer.LoadBasedAutoScalingProperty.Builder enable(IResolvable enable)
CfnLayer.LoadBasedAutoScalingProperty.getEnable()
enable
- Whether load-based auto scaling is enabled for the layer.this
public CfnLayer.LoadBasedAutoScalingProperty.Builder upScaling(IResolvable upScaling)
CfnLayer.LoadBasedAutoScalingProperty.getUpScaling()
upScaling
- An `AutoScalingThresholds` object that describes the upscaling configuration, which defines how and when AWS OpsWorks Stacks increases the number of instances.this
public CfnLayer.LoadBasedAutoScalingProperty.Builder upScaling(CfnLayer.AutoScalingThresholdsProperty upScaling)
CfnLayer.LoadBasedAutoScalingProperty.getUpScaling()
upScaling
- An `AutoScalingThresholds` object that describes the upscaling configuration, which defines how and when AWS OpsWorks Stacks increases the number of instances.this
public CfnLayer.LoadBasedAutoScalingProperty build()
CfnLayer.LoadBasedAutoScalingProperty
java.lang.NullPointerException
- if any required attribute was not provided