Class CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.rds.CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDBCluster.ServerlessV2ScalingConfigurationProperty>
- Enclosing interface:
- CfnDBCluster.ServerlessV2ScalingConfigurationProperty
@Stability(Stable)
public static final class CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDBCluster.ServerlessV2ScalingConfigurationProperty>
A builder for
CfnDBCluster.ServerlessV2ScalingConfigurationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.maxCapacity
(Number maxCapacity) Sets the value ofCfnDBCluster.ServerlessV2ScalingConfigurationProperty.getMaxCapacity()
minCapacity
(Number minCapacity) Sets the value ofCfnDBCluster.ServerlessV2ScalingConfigurationProperty.getMinCapacity()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
maxCapacity
@Stability(Stable) public CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder maxCapacity(Number maxCapacity) Sets the value ofCfnDBCluster.ServerlessV2ScalingConfigurationProperty.getMaxCapacity()
- Parameters:
maxCapacity
- The maximum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 40, 40.5, 41, and so on. The largest value that you can use is 128.The maximum capacity must be higher than 0.5 ACUs. For more information, see Choosing the maximum Aurora Serverless v2 capacity setting for a cluster in the Amazon Aurora User Guide .
- Returns:
this
-
minCapacity
@Stability(Stable) public CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder minCapacity(Number minCapacity) Sets the value ofCfnDBCluster.ServerlessV2ScalingConfigurationProperty.getMinCapacity()
- Parameters:
minCapacity
- The minimum number of Aurora capacity units (ACUs) for a DB instance in an Aurora Serverless v2 cluster. You can specify ACU values in half-step increments, such as 8, 8.5, 9, and so on. The smallest value that you can use is 0.5.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDBCluster.ServerlessV2ScalingConfigurationProperty>
- Returns:
- a new instance of
CfnDBCluster.ServerlessV2ScalingConfigurationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-