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 (it must contain 8-64 characters in at least three of the following four types: uppercase letters, lowercase letters, digits, and symbols (~!@#$%^&*_-+=`|\(){}[]:;'<>,.?/).)
|
String[] |
getAlarmPolicyIds()
Get Array of alarm policy IDs
|
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
|
ParamItem[] |
getClusterParams()
Get Array of parameters
|
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.
|
Long |
getDealMode()
Get Transaction mode.
|
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 a non-serverless instance in GB
|
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 |
getParamTemplateId()
Get Parameter template ID
|
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
|
String[] |
getSecurityGroupIds()
Get Array of security group IDs
|
Long |
getStorage()
Get Storage capacity in GB
|
Long |
getStorageLimit()
Get The maximum storage of a non-serverless instance in GB
If `DbType` is `MYSQL` and the storage billing mode is prepaid, the parameter value cannot exceed the maximum storage corresponding to the CPU and memory specifications.
|
Long |
getStoragePayMode()
Get The billing mode of cluster storage.
|
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 (it must contain 8-64 characters in at least three of the following four types: uppercase letters, lowercase letters, digits, and symbols (~!@#$%^&*_-+=`|\(){}[]:;'<>,.?/).)
|
void |
setAlarmPolicyIds(String[] AlarmPolicyIds)
Set Array of alarm policy IDs
|
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 |
setClusterParams(ParamItem[] ClusterParams)
Set Array of parameters
|
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 |
setDealMode(Long DealMode)
Set Transaction mode.
|
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 a non-serverless instance in GB
|
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 |
setParamTemplateId(Long ParamTemplateId)
Set Parameter template ID
|
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 |
setSecurityGroupIds(String[] SecurityGroupIds)
Set Array of security group IDs
|
void |
setStorage(Long Storage)
Set Storage capacity in GB
|
void |
setStorageLimit(Long StorageLimit)
Set The maximum storage of a non-serverless instance in GB
If `DbType` is `MYSQL` and the storage billing mode is prepaid, the parameter value cannot exceed the maximum storage corresponding to the CPU and memory specifications.
|
void |
setStoragePayMode(Long StoragePayMode)
Set The billing mode of cluster storage.
|
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, toJsonString
public 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 a non-serverless instance in GBpublic Long getStorage()
public void setStorage(Long Storage)
Storage
- Storage capacity in GBpublic String getClusterName()
public void setClusterName(String ClusterName)
ClusterName
- Cluster namepublic String getAdminPassword()
public void setAdminPassword(String AdminPassword)
AdminPassword
- Account password (it must contain 8-64 characters in at least three of the following four types: uppercase letters, lowercase letters, digits, and 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
- The maximum storage of a non-serverless instance in GB
If `DbType` is `MYSQL` and the storage billing mode is prepaid, the parameter value cannot exceed the maximum storage corresponding to the CPU and memory specifications.public 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: 600public Long getStoragePayMode()
public void setStoragePayMode(Long StoragePayMode)
StoragePayMode
- The billing mode of cluster storage. Valid values: `0` (postpaid), `1` (prepaid). Default value: `0`.
If `DbType` is `MYSQL` and the billing mode of cluster compute is pay-as-you-go (or the `DbMode` is `SERVERLESS`), the billing mode of cluster storage must be postpaid.
Clusters with storage billed in prepaid mode cannot be cloned or rolled back.public String[] getSecurityGroupIds()
public void setSecurityGroupIds(String[] SecurityGroupIds)
SecurityGroupIds
- Array of security group IDspublic String[] getAlarmPolicyIds()
public void setAlarmPolicyIds(String[] AlarmPolicyIds)
AlarmPolicyIds
- Array of alarm policy IDspublic ParamItem[] getClusterParams()
public void setClusterParams(ParamItem[] ClusterParams)
ClusterParams
- Array of parameterspublic Long getDealMode()
public void setDealMode(Long DealMode)
DealMode
- Transaction mode. Valid values: `0` (place and pay for an order), `1` (place an order)public Long getParamTemplateId()
public void setParamTemplateId(Long ParamTemplateId)
ParamTemplateId
- Parameter template IDCopyright © 2021. All rights reserved.