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