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