Class CfnLayer.LoadBasedAutoScalingProperty.Builder
java.lang.Object
software.amazon.awscdk.services.opsworks.CfnLayer.LoadBasedAutoScalingProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLayer.LoadBasedAutoScalingProperty>
- Enclosing interface:
- CfnLayer.LoadBasedAutoScalingProperty
@Stability(Stable)
public static final class CfnLayer.LoadBasedAutoScalingProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLayer.LoadBasedAutoScalingProperty>
A builder for
CfnLayer.LoadBasedAutoScalingProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.downScaling(IResolvable downScaling) Sets the value ofCfnLayer.LoadBasedAutoScalingProperty.getDownScaling()downScaling(CfnLayer.AutoScalingThresholdsProperty downScaling) Sets the value ofCfnLayer.LoadBasedAutoScalingProperty.getDownScaling()Sets the value ofCfnLayer.LoadBasedAutoScalingProperty.getEnable()enable(IResolvable enable) Sets the value ofCfnLayer.LoadBasedAutoScalingProperty.getEnable()upScaling(IResolvable upScaling) Sets the value ofCfnLayer.LoadBasedAutoScalingProperty.getUpScaling()upScaling(CfnLayer.AutoScalingThresholdsProperty upScaling) Sets the value ofCfnLayer.LoadBasedAutoScalingProperty.getUpScaling()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
downScaling
@Stability(Stable) public CfnLayer.LoadBasedAutoScalingProperty.Builder downScaling(IResolvable downScaling) Sets the value ofCfnLayer.LoadBasedAutoScalingProperty.getDownScaling()- Parameters:
downScaling- AnAutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when AWS OpsWorks Stacks reduces the number of instances.- Returns:
this
-
downScaling
@Stability(Stable) public CfnLayer.LoadBasedAutoScalingProperty.Builder downScaling(CfnLayer.AutoScalingThresholdsProperty downScaling) Sets the value ofCfnLayer.LoadBasedAutoScalingProperty.getDownScaling()- Parameters:
downScaling- AnAutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when AWS OpsWorks Stacks reduces the number of instances.- Returns:
this
-
enable
Sets the value ofCfnLayer.LoadBasedAutoScalingProperty.getEnable()- Parameters:
enable- Whether load-based auto scaling is enabled for the layer.- Returns:
this
-
enable
Sets the value ofCfnLayer.LoadBasedAutoScalingProperty.getEnable()- Parameters:
enable- Whether load-based auto scaling is enabled for the layer.- Returns:
this
-
upScaling
@Stability(Stable) public CfnLayer.LoadBasedAutoScalingProperty.Builder upScaling(IResolvable upScaling) Sets the value ofCfnLayer.LoadBasedAutoScalingProperty.getUpScaling()- Parameters:
upScaling- AnAutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when AWS OpsWorks Stacks increases the number of instances.- Returns:
this
-
upScaling
@Stability(Stable) public CfnLayer.LoadBasedAutoScalingProperty.Builder upScaling(CfnLayer.AutoScalingThresholdsProperty upScaling) Sets the value ofCfnLayer.LoadBasedAutoScalingProperty.getUpScaling()- Parameters:
upScaling- AnAutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when AWS OpsWorks Stacks increases the number of instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLayer.LoadBasedAutoScalingProperty>- Returns:
- a new instance of
CfnLayer.LoadBasedAutoScalingProperty - Throws:
NullPointerException- if any required attribute was not provided
-