public class CreateClustersRequest extends AbstractModel
| Constructor and Description | 
|---|
| CreateClustersRequest() | 
| CreateClustersRequest(CreateClustersRequest source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
       and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy. | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getAdminPassword()Get Account password, which can contain 8–64 characters and must contain at least two of the following types of characters: letters, digits, and special symbols (_+-&=!@#$%^*()~) | 
| String | getAutoPause()Get This parameter specifies whether the cluster will be automatically paused if `DbMode` is `SERVERLESS`. | 
| Long | getAutoPauseDelay()Get This parameter specifies the delay for automatic cluster pause in seconds if `DbMode` is `SERVERLESS`. | 
| Long | getAutoRenewFlag()Get Whether auto-renewal is enabled for monthly subscription plan | 
| Long | getAutoVoucher()Get Whether to automatically select a voucher. | 
| String | getClusterName()Get Cluster name | 
| Long | getCount()Get Number of purchased items. | 
| Long | getCpu()Get Number of CPU cores of normal instance | 
| String | getDbMode()Get Database type
Valid values when `DbType` is `MYSQL` (default value: NORMAL):
NORMAL
SERVERLESS | 
| String | getDbType()Get Database type. | 
| String | getDbVersion()Get Database version. | 
| String | getExpectTime()Get Specified time for time point rollback or snapshot time for snapshot rollback | 
| Long | getExpectTimeThresh()Get Specified allowed time range for time point rollback | 
| Long | getHaCount()Get Number of instances (this parameter has been disused and is retained only for compatibility with existing instances) | 
| Long | getInstanceCount()Get Number of instances | 
| Float | getMaxCpu()Get This parameter is required if `DbMode` is `SERVERLESS`:
Maximum number of CPU cores. | 
| Long | getMemory()Get Memory of normal instance | 
| Float | getMinCpu()Get This parameter is required if `DbMode` is `SERVERLESS`
Minimum number of CPU cores. | 
| String | getOrderSource()Get Order source | 
| String | getOriginalClusterId()Get Pass in the source cluster ID during rollback to find the source `poolId` | 
| Long | getPayMode()Get Billing mode. | 
| Long | getPort()Get Port. | 
| Long | getProjectId()Get Project ID | 
| Tag[] | getResourceTags()Get Array of tags to be bound to the created cluster | 
| Long | getRollbackId()Get `snapshotId` for snapshot rollback or `queryId` for time point rollback. | 
| String | getRollbackStrategy()Get Rollback type:
noneRollback: no rollback
snapRollback: rollback by snapshot
timeRollback: rollback by time point | 
| Long | getStorage()Get Storage | 
| Long | getStorageLimit()Get Storage upper limit of normal instance in GB | 
| String | getSubnetId()Get Subnet ID | 
| Long | getTimeSpan()Get Purchase duration of monthly subscription plan | 
| String | getTimeUnit()Get Purchase duration unit of monthly subscription plan | 
| String | getVpcId()Get VPC ID | 
| String | getZone()Get AZ | 
| void | setAdminPassword(String AdminPassword)Set Account password, which can contain 8–64 characters and must contain at least two of the following types of characters: letters, digits, and special symbols (_+-&=!@#$%^*()~) | 
| void | setAutoPause(String AutoPause)Set This parameter specifies whether the cluster will be automatically paused if `DbMode` is `SERVERLESS`. | 
| void | setAutoPauseDelay(Long AutoPauseDelay)Set This parameter specifies the delay for automatic cluster pause in seconds if `DbMode` is `SERVERLESS`. | 
| void | setAutoRenewFlag(Long AutoRenewFlag)Set Whether auto-renewal is enabled for monthly subscription plan | 
| void | setAutoVoucher(Long AutoVoucher)Set Whether to automatically select a voucher. | 
| void | setClusterName(String ClusterName)Set Cluster name | 
| void | setCount(Long Count)Set Number of purchased items. | 
| void | setCpu(Long Cpu)Set Number of CPU cores of normal instance | 
| void | setDbMode(String DbMode)Set Database type
Valid values when `DbType` is `MYSQL` (default value: NORMAL):
NORMAL
SERVERLESS | 
| void | setDbType(String DbType)Set Database type. | 
| void | setDbVersion(String DbVersion)Set Database version. | 
| void | setExpectTime(String ExpectTime)Set Specified time for time point rollback or snapshot time for snapshot rollback | 
| void | setExpectTimeThresh(Long ExpectTimeThresh)Set Specified allowed time range for time point rollback | 
| void | setHaCount(Long HaCount)Set Number of instances (this parameter has been disused and is retained only for compatibility with existing instances) | 
| void | setInstanceCount(Long InstanceCount)Set Number of instances | 
| void | setMaxCpu(Float MaxCpu)Set This parameter is required if `DbMode` is `SERVERLESS`:
Maximum number of CPU cores. | 
| void | setMemory(Long Memory)Set Memory of normal instance | 
| void | setMinCpu(Float MinCpu)Set This parameter is required if `DbMode` is `SERVERLESS`
Minimum number of CPU cores. | 
| void | setOrderSource(String OrderSource)Set Order source | 
| void | setOriginalClusterId(String OriginalClusterId)Set Pass in the source cluster ID during rollback to find the source `poolId` | 
| void | setPayMode(Long PayMode)Set Billing mode. | 
| void | setPort(Long Port)Set Port. | 
| void | setProjectId(Long ProjectId)Set Project ID | 
| void | setResourceTags(Tag[] ResourceTags)Set Array of tags to be bound to the created cluster | 
| void | setRollbackId(Long RollbackId)Set `snapshotId` for snapshot rollback or `queryId` for time point rollback. | 
| void | setRollbackStrategy(String RollbackStrategy)Set Rollback type:
noneRollback: no rollback
snapRollback: rollback by snapshot
timeRollback: rollback by time point | 
| void | setStorage(Long Storage)Set Storage | 
| void | setStorageLimit(Long StorageLimit)Set Storage upper limit of normal instance in GB | 
| void | setSubnetId(String SubnetId)Set Subnet ID | 
| void | setTimeSpan(Long TimeSpan)Set Purchase duration of monthly subscription plan | 
| void | setTimeUnit(String TimeUnit)Set Purchase duration unit of monthly subscription plan | 
| void | setVpcId(String VpcId)Set VPC ID | 
| void | setZone(String Zone)Set AZ | 
| void | toMap(HashMap<String,String> map,
     String prefix)Internal implementation, normal users should not use it. | 
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonStringpublic CreateClustersRequest()
public CreateClustersRequest(CreateClustersRequest source)
public String getZone()
public void setZone(String Zone)
Zone - AZpublic String getVpcId()
public void setVpcId(String VpcId)
VpcId - VPC IDpublic String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId - Subnet IDpublic String getDbType()
public void setDbType(String DbType)
DbType - Database type. Valid values: 
public String getDbVersion()
public void setDbVersion(String DbVersion)
DbVersion - Database version. Valid values: 
public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId - Project IDpublic Long getCpu()
public void setCpu(Long Cpu)
Cpu - Number of CPU cores of normal instancepublic Long getMemory()
public void setMemory(Long Memory)
Memory - Memory of normal instancepublic Long getStorage()
public void setStorage(Long Storage)
Storage - Storagepublic String getClusterName()
public void setClusterName(String ClusterName)
ClusterName - Cluster namepublic String getAdminPassword()
public void setAdminPassword(String AdminPassword)
AdminPassword - Account password, which can contain 8–64 characters and must contain at least two of the following types of characters: letters, digits, and special symbols (_+-&=!@#$%^*()~)public Long getPort()
public void setPort(Long Port)
Port - Port. Default value: 5432public Long getPayMode()
public void setPayMode(Long PayMode)
PayMode - Billing mode. 0: pay-as-you-go; 1: monthly subscription. Default value: 0public Long getCount()
public void setCount(Long Count)
Count - Number of purchased items. Currently, only 1 can be passed in. If this parameter is left empty, 1 will be used by default.public String getRollbackStrategy()
public void setRollbackStrategy(String RollbackStrategy)
RollbackStrategy - Rollback type:
noneRollback: no rollback
snapRollback: rollback by snapshot
timeRollback: rollback by time pointpublic Long getRollbackId()
public void setRollbackId(Long RollbackId)
RollbackId - `snapshotId` for snapshot rollback or `queryId` for time point rollback. 0 indicates to determine whether the time point is validpublic String getOriginalClusterId()
public void setOriginalClusterId(String OriginalClusterId)
OriginalClusterId - Pass in the source cluster ID during rollback to find the source `poolId`public String getExpectTime()
public void setExpectTime(String ExpectTime)
ExpectTime - Specified time for time point rollback or snapshot time for snapshot rollbackpublic Long getExpectTimeThresh()
public void setExpectTimeThresh(Long ExpectTimeThresh)
ExpectTimeThresh - Specified allowed time range for time point rollbackpublic Long getStorageLimit()
public void setStorageLimit(Long StorageLimit)
StorageLimit - Storage upper limit of normal instance in GBpublic Long getInstanceCount()
public void setInstanceCount(Long InstanceCount)
InstanceCount - Number of instancespublic Long getTimeSpan()
public void setTimeSpan(Long TimeSpan)
TimeSpan - Purchase duration of monthly subscription planpublic String getTimeUnit()
public void setTimeUnit(String TimeUnit)
TimeUnit - Purchase duration unit of monthly subscription planpublic Long getAutoRenewFlag()
public void setAutoRenewFlag(Long AutoRenewFlag)
AutoRenewFlag - Whether auto-renewal is enabled for monthly subscription planpublic Long getAutoVoucher()
public void setAutoVoucher(Long AutoVoucher)
AutoVoucher - Whether to automatically select a voucher. 1: yes; 0: no. Default value: 0public Long getHaCount()
public void setHaCount(Long HaCount)
HaCount - Number of instances (this parameter has been disused and is retained only for compatibility with existing instances)public String getOrderSource()
public void setOrderSource(String OrderSource)
OrderSource - Order sourcepublic Tag[] getResourceTags()
public void setResourceTags(Tag[] ResourceTags)
ResourceTags - Array of tags to be bound to the created clusterpublic String getDbMode()
public void setDbMode(String DbMode)
DbMode - Database type
Valid values when `DbType` is `MYSQL` (default value: NORMAL):
public Float getMinCpu()
public void setMinCpu(Float MinCpu)
MinCpu - This parameter is required if `DbMode` is `SERVERLESS`
Minimum number of CPU cores. For the value range, please see the returned result of `DescribeServerlessInstanceSpecs`public Float getMaxCpu()
public void setMaxCpu(Float MaxCpu)
MaxCpu - This parameter is required if `DbMode` is `SERVERLESS`:
Maximum number of CPU cores. For the value range, please see the returned result of `DescribeServerlessInstanceSpecs`public String getAutoPause()
public void setAutoPause(String AutoPause)
AutoPause - This parameter specifies whether the cluster will be automatically paused if `DbMode` is `SERVERLESS`. Valid values:
public Long getAutoPauseDelay()
public void setAutoPauseDelay(Long AutoPauseDelay)
AutoPauseDelay - This parameter specifies the delay for automatic cluster pause in seconds if `DbMode` is `SERVERLESS`. Value range: [600,691200]
Default value: 600Copyright © 2021. All rights reserved.