public static final class DBClusterProps.Builder extends Object implements software.amazon.jsii.Builder<DBClusterProps>
DBClusterProps| Constructor and Description |
|---|
Builder() |
public DBClusterProps.Builder category(String category)
DBClusterProps.getCategory()category - Property category: The edition of the cluster. This parameter is required.
Valid values:
Basic: Single-replica Edition
HighAvailability: Double-replica Editionthispublic DBClusterProps.Builder category(com.aliyun.ros.cdk.core.IResolvable category)
DBClusterProps.getCategory()category - Property category: The edition of the cluster. This parameter is required.
Valid values:
Basic: Single-replica Edition
HighAvailability: Double-replica Editionthispublic DBClusterProps.Builder dbClusterNetworkType(String dbClusterNetworkType)
DBClusterProps.getDbClusterNetworkType()dbClusterNetworkType - Property dbClusterNetworkType: Network type of the cluster instance, value: VPC. This parameter is required.thispublic DBClusterProps.Builder dbClusterNetworkType(com.aliyun.ros.cdk.core.IResolvable dbClusterNetworkType)
DBClusterProps.getDbClusterNetworkType()dbClusterNetworkType - Property dbClusterNetworkType: Network type of the cluster instance, value: VPC. This parameter is required.thispublic DBClusterProps.Builder dbClusterType(String dbClusterType)
DBClusterProps.getDbClusterType()dbClusterType - Property dbClusterType: The specification of the cluster. This parameter is required.
If the cluster is of the Single-replica Edition, the following values are valid:
S4: 4 cores, 16 GB.
S8: 8 cores, 32 GB.
S16: 16 cores, 64 GB.
S32: 32 cores, 128 GB.
S64: 64 cores, 256 GB.
S104: 104 cores, 384 GB.
If the cluster is of the Double-replica Edition, the following values are valid:
C4: 4 cores, 16 GB.
C8: 8 cores, 32 GB.
C16: 16 cores, 64 GB.
C32: 32 cores, 128 GB.
C64: 64 cores, 256 GB.
C104: 104 cores, 384 GB.thispublic DBClusterProps.Builder dbClusterType(com.aliyun.ros.cdk.core.IResolvable dbClusterType)
DBClusterProps.getDbClusterType()dbClusterType - Property dbClusterType: The specification of the cluster. This parameter is required.
If the cluster is of the Single-replica Edition, the following values are valid:
S4: 4 cores, 16 GB.
S8: 8 cores, 32 GB.
S16: 16 cores, 64 GB.
S32: 32 cores, 128 GB.
S64: 64 cores, 256 GB.
S104: 104 cores, 384 GB.
If the cluster is of the Double-replica Edition, the following values are valid:
C4: 4 cores, 16 GB.
C8: 8 cores, 32 GB.
C16: 16 cores, 64 GB.
C32: 32 cores, 128 GB.
C64: 64 cores, 256 GB.
C104: 104 cores, 384 GB.thispublic DBClusterProps.Builder dbClusterVersion(String dbClusterVersion)
DBClusterProps.getDbClusterVersion()dbClusterVersion - Property dbClusterVersion: Version, value: 19.15.2.2. This parameter is required.thispublic DBClusterProps.Builder dbClusterVersion(com.aliyun.ros.cdk.core.IResolvable dbClusterVersion)
DBClusterProps.getDbClusterVersion()dbClusterVersion - Property dbClusterVersion: Version, value: 19.15.2.2. This parameter is required.thispublic DBClusterProps.Builder dbNodeCount(Number dbNodeCount)
DBClusterProps.getDbNodeCount()dbNodeCount - Property dbNodeCount: The number of nodes. This parameter is required.
If the cluster is of the Single-replica Edition, the value ranges from 1 to 48.
If the cluster is of the Double-replica Edition, the value ranges from 1 to 24.thispublic DBClusterProps.Builder dbNodeCount(com.aliyun.ros.cdk.core.IResolvable dbNodeCount)
DBClusterProps.getDbNodeCount()dbNodeCount - Property dbNodeCount: The number of nodes. This parameter is required.
If the cluster is of the Single-replica Edition, the value ranges from 1 to 48.
If the cluster is of the Double-replica Edition, the value ranges from 1 to 24.thispublic DBClusterProps.Builder dbNodeStorage(Number dbNodeStorage)
DBClusterProps.getDbNodeStorage()dbNodeStorage - Property dbNodeStorage: The storage capacity of a single node. This parameter is required.
Valid values: 100 to 32000. Unit: GB.
Note self value is a multiple of 100.thispublic DBClusterProps.Builder dbNodeStorage(com.aliyun.ros.cdk.core.IResolvable dbNodeStorage)
DBClusterProps.getDbNodeStorage()dbNodeStorage - Property dbNodeStorage: The storage capacity of a single node. This parameter is required.
Valid values: 100 to 32000. Unit: GB.
Note self value is a multiple of 100.thispublic DBClusterProps.Builder dbNodeStorageType(String dbNodeStorageType)
DBClusterProps.getDbNodeStorageType()dbNodeStorageType - Property dbNodeStorageType: Instance node storage type. This parameter is required.
Valid values: cloud_essd, cloud_efficiency.thispublic DBClusterProps.Builder dbNodeStorageType(com.aliyun.ros.cdk.core.IResolvable dbNodeStorageType)
DBClusterProps.getDbNodeStorageType()dbNodeStorageType - Property dbNodeStorageType: Instance node storage type. This parameter is required.
Valid values: cloud_essd, cloud_efficiency.thispublic DBClusterProps.Builder paymentType(String paymentType)
DBClusterProps.getPaymentType()paymentType - Property paymentType: The billing method of the cluster. This parameter is required.
Valid values:
Postpaid: pay-as-you-go
Prepaid: subscriptionthispublic DBClusterProps.Builder paymentType(com.aliyun.ros.cdk.core.IResolvable paymentType)
DBClusterProps.getPaymentType()paymentType - Property paymentType: The billing method of the cluster. This parameter is required.
Valid values:
Postpaid: pay-as-you-go
Prepaid: subscriptionthispublic DBClusterProps.Builder dbClusterDescription(String dbClusterDescription)
DBClusterProps.getDbClusterDescription()dbClusterDescription - Property dbClusterDescription: The description of the cluster.thispublic DBClusterProps.Builder dbClusterDescription(com.aliyun.ros.cdk.core.IResolvable dbClusterDescription)
DBClusterProps.getDbClusterDescription()dbClusterDescription - Property dbClusterDescription: The description of the cluster.thispublic DBClusterProps.Builder encryptionKey(String encryptionKey)
DBClusterProps.getEncryptionKey()encryptionKey - Property encryptionKey: KMS key ID.thispublic DBClusterProps.Builder encryptionKey(com.aliyun.ros.cdk.core.IResolvable encryptionKey)
DBClusterProps.getEncryptionKey()encryptionKey - Property encryptionKey: KMS key ID.thispublic DBClusterProps.Builder encryptionType(String encryptionType)
DBClusterProps.getEncryptionType()encryptionType - Property encryptionType: Kms key type, only cloud disk encryption is supported and the value is CloudDisk.thispublic DBClusterProps.Builder encryptionType(com.aliyun.ros.cdk.core.IResolvable encryptionType)
DBClusterProps.getEncryptionType()encryptionType - Property encryptionType: Kms key type, only cloud disk encryption is supported and the value is CloudDisk.thispublic DBClusterProps.Builder period(String period)
DBClusterProps.getPeriod()period - Property period: Prepaid time period.If the payment type is Prepaid, this parameter is mandatory. Specify the prepaid cluster as a yearly or monthly type. Valid values: Year, Month.thispublic DBClusterProps.Builder period(com.aliyun.ros.cdk.core.IResolvable period)
DBClusterProps.getPeriod()period - Property period: Prepaid time period.If the payment type is Prepaid, this parameter is mandatory. Specify the prepaid cluster as a yearly or monthly type. Valid values: Year, Month.thispublic DBClusterProps.Builder usedTime(Number usedTime)
DBClusterProps.getUsedTime()usedTime - Property usedTime: The subscription duration.
Valid values:
When Period is Month, it could be from 1 to 9, 12, 24, 36.
When Period is Year, it could be from 1 to 3.thispublic DBClusterProps.Builder usedTime(com.aliyun.ros.cdk.core.IResolvable usedTime)
DBClusterProps.getUsedTime()usedTime - Property usedTime: The subscription duration.
Valid values:
When Period is Month, it could be from 1 to 9, 12, 24, 36.
When Period is Year, it could be from 1 to 3.thispublic DBClusterProps.Builder vpcId(String vpcId)
DBClusterProps.getVpcId()vpcId - Property vpcId: VpcId.thispublic DBClusterProps.Builder vpcId(com.aliyun.ros.cdk.core.IResolvable vpcId)
DBClusterProps.getVpcId()vpcId - Property vpcId: VpcId.thispublic DBClusterProps.Builder vSwitchId(String vSwitchId)
DBClusterProps.getVSwitchId()vSwitchId - Property vSwitchId: VSwitchId.thispublic DBClusterProps.Builder vSwitchId(com.aliyun.ros.cdk.core.IResolvable vSwitchId)
DBClusterProps.getVSwitchId()vSwitchId - Property vSwitchId: VSwitchId.thispublic DBClusterProps.Builder zoneId(String zoneId)
DBClusterProps.getZoneId()zoneId - Property zoneId: ZoneId.thispublic DBClusterProps.Builder zoneId(com.aliyun.ros.cdk.core.IResolvable zoneId)
DBClusterProps.getZoneId()zoneId - Property zoneId: ZoneId.thispublic DBClusterProps build()
build in interface software.amazon.jsii.Builder<DBClusterProps>DBClusterPropsNullPointerException - if any required attribute was not providedCopyright © 2023. All rights reserved.