Class EnableScalingProps.Builder
java.lang.Object
software.amazon.awscdk.services.applicationautoscaling.EnableScalingProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<EnableScalingProps>
- Enclosing interface:
EnableScalingProps
@Stability(Stable)
public static final class EnableScalingProps.Builder
extends Object
implements software.amazon.jsii.Builder<EnableScalingProps>
A builder for
EnableScalingProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maxCapacity
(Number maxCapacity) Sets the value ofEnableScalingProps.getMaxCapacity()
minCapacity
(Number minCapacity) Sets the value ofEnableScalingProps.getMinCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxCapacity
Sets the value ofEnableScalingProps.getMaxCapacity()
- Parameters:
maxCapacity
- Maximum capacity to scale to. This parameter is required.- Returns:
this
-
minCapacity
Sets the value ofEnableScalingProps.getMinCapacity()
- Parameters:
minCapacity
- Minimum capacity to scale to.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<EnableScalingProps>
- Returns:
- a new instance of
EnableScalingProps
- Throws:
NullPointerException
- if any required attribute was not provided
-