public class CreateDBInstanceRequest extends AbstractModel
Constructor and Description |
---|
CreateDBInstanceRequest() |
Modifier and Type | Method and Description |
---|---|
Long |
getAutoRenewFlag()
Get Auto-renewal flag.
|
Long |
getAutoVoucher()
Get Whether to automatically use a voucher.
|
Long |
getClone()
Get Valid values: 1 (regular instance), 2 (temp instance), 3 (read-only instance), 4 (disaster recovery instance).
|
String |
getClusterType()
Get Instance type.
|
String |
getFather()
Get Primary instance ID.
|
Long |
getGoodsNum()
Get Number of instances.
|
String |
getMachineCode()
Get Server type.
|
Long |
getMemory()
Get Instance memory size in GB.
|
String |
getMongoVersion()
Get Version number.
|
Long |
getNodeNum()
Get 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.
|
Long |
getReplicateSetNum()
Get Number of replica sets.
|
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 Instance region name 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 |
setClone(Long Clone)
Set Valid values: 1 (regular instance), 2 (temp instance), 3 (read-only instance), 4 (disaster recovery instance).
|
void |
setClusterType(String ClusterType)
Set Instance type.
|
void |
setFather(String Father)
Set Primary instance ID.
|
void |
setGoodsNum(Long GoodsNum)
Set Number of instances.
|
void |
setMachineCode(String MachineCode)
Set Server type.
|
void |
setMemory(Long Memory)
Set Instance memory size in GB.
|
void |
setMongoVersion(String MongoVersion)
Set Version number.
|
void |
setNodeNum(Long NodeNum)
Set 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 |
setReplicateSetNum(Long ReplicateSetNum)
Set Number of replica sets.
|
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 Instance region name 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 Long getNodeNum()
public void setNodeNum(Long NodeNum)
NodeNum
- Number of nodes in each replica set. Currently, the number of nodes per replica set is fixed at 3, while the number of secondary nodes per shard is customizable. For more information, please see the parameter returned by 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.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
- Instance region name in the format of ap-guangzhou-2.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 this parameter is not set, you need to set an instance password through the `SetPassword` API after creating an instance. The password can only contain 8-16 characters and must contain at least two of the following types of characters: letters, digits, and special characters `!@#%^*()`.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
- Valid values: 1 (regular instance), 2 (temp instance), 3 (read-only instance), 4 (disaster recovery instance).public String getFather()
public void setFather(String Father)
Father
- Primary instance ID. It is required for read-only and disaster recovery instances.public String[] getSecurityGroup()
public void setSecurityGroup(String[] SecurityGroup)
SecurityGroup
- Security group.Copyright © 2020. All rights reserved.