public class CreateDBInstanceRequest extends AbstractModel
Constructor and Description |
---|
CreateDBInstanceRequest() |
CreateDBInstanceRequest(CreateDBInstanceRequest 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 |
---|---|
Long |
getAutoRenewFlag()
Get Auto-renewal flag.
|
Long |
getAutoVoucher()
Get Whether to automatically use a voucher.
|
String[] |
getAvailabilityZoneList()
Get AZ list when multi-AZ deployment is enabled.
|
Long |
getClone()
Get Instance type.
|
String |
getClusterType()
Get Instance type.
|
String |
getFather()
Get Primary instance ID.
|
Long |
getGoodsNum()
Get Number of instances.
|
String |
getHiddenZone()
Get The AZ where the hidden node resides.
|
String |
getInstanceName()
Get Instance name, which can contain up to 60 letters, digits, or symbols (_-).
|
String |
getMachineCode()
Get Server type.
|
Long |
getMemory()
Get Instance memory size in GB.
|
Long |
getMongosCpu()
Get The number of mongos CPUs, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger.
|
Long |
getMongosMemory()
Get The size of mongos memory, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger.
|
Long |
getMongosNodeNum()
Get The number of mongos routers, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger.
|
String |
getMongoVersion()
Get Version number.
|
Long |
getNodeNum()
Get The number of nodes in each replica set.
|
String |
getPassword()
Get Instance password.
|
Long |
getPeriod()
Get Instance validity period in months.
|
Long |
getProjectId()
Get Project ID.
|
String[] |
getReadonlyNodeAvailabilityZoneList()
Get The AZ where the read-only node is deployed
|
Long |
getReadonlyNodeNum()
Get Number of read-only nodes.
|
Long |
getReplicateSetNum()
Get Number of replica sets.
|
String |
getRestoreTime()
Get The point in time to which the cloned instance will be rolled back.
|
String[] |
getSecurityGroup()
Get Security group.
|
String |
getSubnetId()
Get VPC subnet ID.
|
TagInfo[] |
getTags()
Get Instance tag information.
|
Long |
getVolume()
Get Instance disk size in GB.
|
String |
getVpcId()
Get VPC ID.
|
String |
getZone()
Get AZ in the format of ap-guangzhou-2.
|
void |
setAutoRenewFlag(Long AutoRenewFlag)
Set Auto-renewal flag.
|
void |
setAutoVoucher(Long AutoVoucher)
Set Whether to automatically use a voucher.
|
void |
setAvailabilityZoneList(String[] AvailabilityZoneList)
Set AZ list when multi-AZ deployment is enabled.
|
void |
setClone(Long Clone)
Set Instance type.
|
void |
setClusterType(String ClusterType)
Set Instance type.
|
void |
setFather(String Father)
Set Primary instance ID.
|
void |
setGoodsNum(Long GoodsNum)
Set Number of instances.
|
void |
setHiddenZone(String HiddenZone)
Set The AZ where the hidden node resides.
|
void |
setInstanceName(String InstanceName)
Set Instance name, which can contain up to 60 letters, digits, or symbols (_-).
|
void |
setMachineCode(String MachineCode)
Set Server type.
|
void |
setMemory(Long Memory)
Set Instance memory size in GB.
|
void |
setMongosCpu(Long MongosCpu)
Set The number of mongos CPUs, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger.
|
void |
setMongosMemory(Long MongosMemory)
Set The size of mongos memory, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger.
|
void |
setMongosNodeNum(Long MongosNodeNum)
Set The number of mongos routers, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger.
|
void |
setMongoVersion(String MongoVersion)
Set Version number.
|
void |
setNodeNum(Long NodeNum)
Set The number of nodes in each replica set.
|
void |
setPassword(String Password)
Set Instance password.
|
void |
setPeriod(Long Period)
Set Instance validity period in months.
|
void |
setProjectId(Long ProjectId)
Set Project ID.
|
void |
setReadonlyNodeAvailabilityZoneList(String[] ReadonlyNodeAvailabilityZoneList)
Set The AZ where the read-only node is deployed
|
void |
setReadonlyNodeNum(Long ReadonlyNodeNum)
Set Number of read-only nodes.
|
void |
setReplicateSetNum(Long ReplicateSetNum)
Set Number of replica sets.
|
void |
setRestoreTime(String RestoreTime)
Set The point in time to which the cloned instance will be rolled back.
|
void |
setSecurityGroup(String[] SecurityGroup)
Set Security group.
|
void |
setSubnetId(String SubnetId)
Set VPC subnet ID.
|
void |
setTags(TagInfo[] Tags)
Set Instance tag information.
|
void |
setVolume(Long Volume)
Set Instance disk size in GB.
|
void |
setVpcId(String VpcId)
Set VPC ID.
|
void |
setZone(String Zone)
Set AZ in the format of ap-guangzhou-2.
|
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 CreateDBInstanceRequest()
public CreateDBInstanceRequest(CreateDBInstanceRequest source)
public Long getNodeNum()
public void setNodeNum(Long NodeNum)
NodeNum
- The number of nodes in each replica set. The value range is subject to the response parameter of the `DescribeSpecInfo` API.public Long getMemory()
public void setMemory(Long Memory)
Memory
- Instance memory size in GB.public Long getVolume()
public void setVolume(Long Volume)
Volume
- Instance disk size in GB.public String getMongoVersion()
public void setMongoVersion(String MongoVersion)
MongoVersion
- Version number. For the specific purchasable versions supported, please see the return result of the `DescribeSpecInfo` API. The correspondences between parameters and versions are as follows: MONGO_3_WT: MongoDB 3.2 WiredTiger Edition; MONGO_3_ROCKS: MongoDB 3.2 RocksDB Edition; MONGO_36_WT: MongoDB 3.6 WiredTiger Edition; MONGO_40_WT: MongoDB 4.0 WiredTiger Edition; MONGO_42_WT: MongoDB 4.2 WiredTiger Edition.public Long getGoodsNum()
public void setGoodsNum(Long GoodsNum)
GoodsNum
- Number of instances. Minimum value: 1. Maximum value: 10.public String getZone()
public void setZone(String Zone)
Zone
- AZ in the format of ap-guangzhou-2. If multi-AZ deployment is enabled, this parameter refers to the primary AZ and must be one of the values of `AvailabilityZoneList`.public Long getPeriod()
public void setPeriod(Long Period)
Period
- Instance validity period in months. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, 36.public String getMachineCode()
public void setMachineCode(String MachineCode)
MachineCode
- Server type. Valid values: HIO (high IO), HIO10G (10-gigabit high IO), STDS5 (standard).public String getClusterType()
public void setClusterType(String ClusterType)
ClusterType
- Instance type. Valid values: REPLSET (replica set), SHARD (sharded cluster), STANDALONE (single-node).public Long getReplicateSetNum()
public void setReplicateSetNum(Long ReplicateSetNum)
ReplicateSetNum
- Number of replica sets. To create a replica set instance, set this parameter to 1; to create a shard instance, see the parameters returned by the `DescribeSpecInfo` API; to create a single-node instance, set this parameter to 0.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID. If this parameter is not set, the default project will be used.public String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID. If this parameter is not set, the classic network will be used. Please use the `DescribeVpcs` API to query the VPC list.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- VPC subnet ID. If `UniqVpcId` is set, then `UniqSubnetId` will be required. Please use the `DescribeSubnets` API to query the subnet list.public String getPassword()
public void setPassword(String Password)
Password
- Instance password. If it is left empty, the password is in the default format of "instance ID+@+root account UIN". For example, if the instance ID is "cmgo-higv73ed" and the root account UIN "100000001", the instance password will be "cmgo-higv73ed@100000001". The custom password must contain 8-32 characters in at least two of the following types: letters, digits, and symbols (!@#%^*()_).public TagInfo[] getTags()
public void setTags(TagInfo[] Tags)
Tags
- Instance tag information.public Long getAutoRenewFlag()
public void setAutoRenewFlag(Long AutoRenewFlag)
AutoRenewFlag
- Auto-renewal flag. Valid values: 0 (auto-renewal not enabled), 1 (auto-renewal enabled). Default value: 0.public Long getAutoVoucher()
public void setAutoVoucher(Long AutoVoucher)
AutoVoucher
- Whether to automatically use a voucher. Valid values: 1 (yes), 0 (no). Default value: 0.public Long getClone()
public void setClone(Long Clone)
Clone
- Instance type. Valid values: `1` (primary instance), `2` (temp instance), `3` (read-only instance), `4` (disaster recovery instance), `5` (cloned instance).public String getFather()
public void setFather(String Father)
Father
- Primary instance ID. It is required for read-only, disaster recovery, and cloned instances.public String[] getSecurityGroup()
public void setSecurityGroup(String[] SecurityGroup)
SecurityGroup
- Security group.public String getRestoreTime()
public void setRestoreTime(String RestoreTime)
RestoreTime
- The point in time to which the cloned instance will be rolled back. This parameter is required for a cloned instance. The point in time in the format of 2021-08-13 16:30:00 must be within the last seven days.public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance name, which can contain up to 60 letters, digits, or symbols (_-).public String[] getAvailabilityZoneList()
public void setAvailabilityZoneList(String[] AvailabilityZoneList)
AvailabilityZoneList
- AZ list when multi-AZ deployment is enabled. For the specific purchasable versions which support multi-AZ deployment, please see the return result of the `DescribeSpecInfo` API. Notes: 1. Nodes of a multi-AZ instance must be deployed across three AZs. 2. To ensure a successful cross-AZ switch, you should not deploy most of the nodes to the same AZ. (For example, a three-node sharded cluster instance does not support deploying two or more nodes in the same AZ.) 3. MongoDB 4.2 and later versions do not support multi-AZ deployment. 4. Read-Only and disaster recovery instances do not support multi-AZ deployment. 5. Instances in the classic network do not support multi-AZ deployment.public Long getMongosCpu()
public void setMongosCpu(Long MongosCpu)
MongosCpu
- The number of mongos CPUs, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger. For the specific purchasable versions supported, please see the return result of the `DescribeSpecInfo` API.public Long getMongosMemory()
public void setMongosMemory(Long MongosMemory)
MongosMemory
- The size of mongos memory, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger. For the specific purchasable versions supported, please see the return result of the `DescribeSpecInfo` API.public Long getMongosNodeNum()
public void setMongosNodeNum(Long MongosNodeNum)
MongosNodeNum
- The number of mongos routers, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger. For the specific purchasable versions supported, please see the return result of the `DescribeSpecInfo` API. Note: please purchase 3-32 mongos routers for high availability.public Long getReadonlyNodeNum()
public void setReadonlyNodeNum(Long ReadonlyNodeNum)
ReadonlyNodeNum
- Number of read-only nodes. Value range: 2-7.public String[] getReadonlyNodeAvailabilityZoneList()
public void setReadonlyNodeAvailabilityZoneList(String[] ReadonlyNodeAvailabilityZoneList)
ReadonlyNodeAvailabilityZoneList
- The AZ where the read-only node is deployedpublic String getHiddenZone()
public void setHiddenZone(String HiddenZone)
HiddenZone
- The AZ where the hidden node resides. It is required for cross-AZ instances.Copyright © 2023. All rights reserved.