Class CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.docdb.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
Constructors -
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 Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster. This parameter is required. You can specify DCU values in half-step increments, such as 32, 32.5, 33, and so on.- Returns:
this
-
minCapacity
@Stability(Stable) public CfnDBCluster.ServerlessV2ScalingConfigurationProperty.Builder minCapacity(Number minCapacity) Sets the value ofCfnDBCluster.ServerlessV2ScalingConfigurationProperty.getMinCapacity()
- Parameters:
minCapacity
- The minimum number of Amazon DocumentDB capacity units (DCUs) for an instance in an Amazon DocumentDB Serverless cluster. This parameter is required. You can specify DCU values in half-step increments, such as 8, 8.5, 9, and so on.- 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
-