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 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, which can contain less than 64 letters, digits, or symbols (-_.).
|
ParamItem[] |
getClusterParams()
Get Array of parameters.
|
Long |
getCount()
Get Number of purchased clusters.
|
Long |
getCpu()
Get It is required when `DbMode` is set to `NORMAL` or left empty.
|
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 This parameter has been deprecated.
|
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.
|
InstanceInitInfo[] |
getInstanceInitInfos()
Get Instance initialization configuration information, which is used to select instances with different specifications when purchasing a cluster.
|
Float |
getMaxCpu()
Get This parameter is required if `DbMode` is `SERVERLESS`.
|
Long |
getMemory()
Get It is required when `DbMode` is set to `NORMAL` or left empty.
|
Float |
getMinCpu()
Get This parameter is required if `DbMode` is `SERVERLESS`.
|
String |
getOrderSource()
Get Order source
|
String |
getOriginalClusterId()
Get The source cluster ID passed in during rollback to find the source `poolId`
|
Long |
getParamTemplateId()
Get Parameter template ID, which can be obtained by querying parameter template information “DescribeParamTemplates”
|
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
|
String |
getSlaveZone()
Get Multi-AZ address
|
Long |
getStorage()
Get This parameter has been deprecated.
|
Long |
getStorageLimit()
Get Storage upper limit of normal instance in GB
If `DbType` is `MYSQL` and the storage billing mode is monthly subscription, the parameter value can’t 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 Duration unit of monthly subscription.
|
String |
getVpcId()
Get VPC ID
|
String |
getZone()
Get AZ
|
void |
setAdminPassword(String AdminPassword)
Set Account password, which 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, which can contain less than 64 letters, digits, or symbols (-_.).
|
void |
setClusterParams(ParamItem[] ClusterParams)
Set Array of parameters.
|
void |
setCount(Long Count)
Set Number of purchased clusters.
|
void |
setCpu(Long Cpu)
Set It is required when `DbMode` is set to `NORMAL` or left empty.
|
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 This parameter has been deprecated.
|
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 |
setInstanceInitInfos(InstanceInitInfo[] InstanceInitInfos)
Set Instance initialization configuration information, which is used to select instances with different specifications when purchasing a cluster.
|
void |
setMaxCpu(Float MaxCpu)
Set This parameter is required if `DbMode` is `SERVERLESS`.
|
void |
setMemory(Long Memory)
Set It is required when `DbMode` is set to `NORMAL` or left empty.
|
void |
setMinCpu(Float MinCpu)
Set This parameter is required if `DbMode` is `SERVERLESS`.
|
void |
setOrderSource(String OrderSource)
Set Order source
|
void |
setOriginalClusterId(String OriginalClusterId)
Set The source cluster ID passed in during rollback to find the source `poolId`
|
void |
setParamTemplateId(Long ParamTemplateId)
Set Parameter template ID, which can be obtained by querying parameter template information “DescribeParamTemplates”
|
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 |
setSlaveZone(String SlaveZone)
Set Multi-AZ address
|
void |
setStorage(Long Storage)
Set This parameter has been deprecated.
|
void |
setStorageLimit(Long StorageLimit)
Set Storage upper limit of normal instance in GB
If `DbType` is `MYSQL` and the storage billing mode is monthly subscription, the parameter value can’t 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 Duration unit of monthly subscription.
|
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 ID.public Long getCpu()
public void setCpu(Long Cpu)
Cpu
- It is required when `DbMode` is set to `NORMAL` or left empty.
Number of CPU cores of normal instancepublic Long getMemory()
public void setMemory(Long Memory)
Memory
- It is required when `DbMode` is set to `NORMAL` or left empty.
Memory of a non-serverless instance in GBpublic Long getStorage()
public void setStorage(Long Storage)
Storage
- This parameter has been deprecated.
Storage capacity in GBpublic String getClusterName()
public void setClusterName(String ClusterName)
ClusterName
- Cluster name, which can contain less than 64 letters, digits, or symbols (-_.).public String getAdminPassword()
public void setAdminPassword(String AdminPassword)
AdminPassword
- Account password, which 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. Valid range: [0, 65535). Default value: 3306public Long getPayMode()
public void setPayMode(Long PayMode)
PayMode
- Billing mode. `0`: pay-as-you-go; `1`: monthly subscription. Default value: `0`public Long getCount()
public void setCount(Long Count)
Count
- Number of purchased clusters. Valid range: [1,50]. Default value: 1public 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
- The source cluster ID passed in 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
- This parameter has been deprecated.
Specified allowed time range for time point rollbackpublic Long getStorageLimit()
public void setStorageLimit(Long StorageLimit)
StorageLimit
- Storage upper limit of normal instance in GB
If `DbType` is `MYSQL` and the storage billing mode is monthly subscription, the parameter value can’t exceed the maximum storage corresponding to the CPU and memory specifications.public Long getInstanceCount()
public void setInstanceCount(Long InstanceCount)
InstanceCount
- Number of Instances. Valid range: (0,16]public Long getTimeSpan()
public void setTimeSpan(Long TimeSpan)
TimeSpan
- Purchase duration of monthly subscription planpublic String getTimeUnit()
public void setTimeUnit(String TimeUnit)
TimeUnit
- Duration unit of monthly subscription. Valid values: `s`, `d`, `m`, `y`public Long getAutoRenewFlag()
public void setAutoRenewFlag(Long AutoRenewFlag)
AutoRenewFlag
- Whether auto-renewal is enabled for monthly subscription plan. Default value: `0`public Long getAutoVoucher()
public void setAutoVoucher(Long AutoVoucher)
AutoVoucher
- Whether to automatically select a voucher. `1`: yes; `0`: no. Default value: `0`public 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, 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, 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: `600`public Long getStoragePayMode()
public void setStoragePayMode(Long StoragePayMode)
StoragePayMode
- The billing mode of cluster storage. Valid values: `0` (pay-as-you-go), `1` (monthly subscription). 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 pay-as-you-go.
Clusters with storage billed in monthly subscription can’t 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 parameters. Valid values: `character_set_server` (utf8|latin1|gbk|utf8mb4), `lower_case_table_names`. 0: case-sensitive; 1: case-insensitive).public 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 ID, which can be obtained by querying parameter template information “DescribeParamTemplates”public String getSlaveZone()
public void setSlaveZone(String SlaveZone)
SlaveZone
- Multi-AZ addresspublic InstanceInitInfo[] getInstanceInitInfos()
public void setInstanceInitInfos(InstanceInitInfo[] InstanceInitInfos)
InstanceInitInfos
- Instance initialization configuration information, which is used to select instances with different specifications when purchasing a cluster.Copyright © 2023. All rights reserved.