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