public class CreateDBInstanceRequest extends AbstractModel
header, skipSign
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 |
getGoodsNum()
Get 实例数量,默认值为1, 最小值1,最大值为10
|
String |
getInstanceType()
Get 实例类型,REPLSET-副本集,SHARD-分片集群,默认为REPLSET
|
String |
getMachineCode()
Get 机器类型,HIO10G:高IO万兆。
|
Long |
getMemory()
Get 实例内存大小,单位:GB
|
String |
getMongoVersion()
Get 指版本信息。具体支持的版本信息 ,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。 - MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本。 - MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本。 - MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本。 - MONGO_44_WT:MongoDB 4.4 WiredTiger存储引擎版本。 - MONGO_50_WT:MongoDB 5.0 WiredTiger存储引擎版本。 - MONGO_60_WT:MongoDB 6.0 WiredTiger存储引擎版本。
|
String |
getPassword()
Get 实例密码
|
Long |
getProjectId()
Get 项目ID,不填为默认项目
|
Long |
getSecondaryNum()
Get 每个副本集内从节点个数
|
String[] |
getSecurityGroup()
Get 安全组参数
|
Long |
getTimeSpan()
Get 时长,购买月数
|
String |
getUniqSubnetId()
Get 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填
|
String |
getUniqVpcId()
Get 私有网络ID,如果不传则默认选择基础网络
|
Long |
getVolume()
Get 实例硬盘大小,单位:GB
|
String |
getZone()
Get 实例所属区域名称,格式如:ap-guangzhou-2
|
void |
setGoodsNum(Long GoodsNum)
Set 实例数量,默认值为1, 最小值1,最大值为10
|
void |
setInstanceType(String InstanceType)
Set 实例类型,REPLSET-副本集,SHARD-分片集群,默认为REPLSET
|
void |
setMachineCode(String MachineCode)
Set 机器类型,HIO10G:高IO万兆。
|
void |
setMemory(Long Memory)
Set 实例内存大小,单位:GB
|
void |
setMongoVersion(String MongoVersion)
Set 指版本信息。具体支持的版本信息 ,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。 - MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本。 - MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本。 - MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本。 - MONGO_44_WT:MongoDB 4.4 WiredTiger存储引擎版本。 - MONGO_50_WT:MongoDB 5.0 WiredTiger存储引擎版本。 - MONGO_60_WT:MongoDB 6.0 WiredTiger存储引擎版本。
|
void |
setPassword(String Password)
Set 实例密码
|
void |
setProjectId(Long ProjectId)
Set 项目ID,不填为默认项目
|
void |
setSecondaryNum(Long SecondaryNum)
Set 每个副本集内从节点个数
|
void |
setSecurityGroup(String[] SecurityGroup)
Set 安全组参数
|
void |
setTimeSpan(Long TimeSpan)
Set 时长,购买月数
|
void |
setUniqSubnetId(String UniqSubnetId)
Set 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填
|
void |
setUniqVpcId(String UniqVpcId)
Set 私有网络ID,如果不传则默认选择基础网络
|
void |
setVolume(Long Volume)
Set 实例硬盘大小,单位:GB
|
void |
setZone(String Zone)
Set 实例所属区域名称,格式如:ap-guangzhou-2
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreateDBInstanceRequest()
public CreateDBInstanceRequest(CreateDBInstanceRequest source)
public Long getSecondaryNum()
public void setSecondaryNum(Long SecondaryNum)
SecondaryNum
- 每个副本集内从节点个数public Long getMemory()
public void setMemory(Long Memory)
Memory
- 实例内存大小,单位:GBpublic Long getVolume()
public void setVolume(Long Volume)
Volume
- 实例硬盘大小,单位:GBpublic String getMongoVersion()
public void setMongoVersion(String MongoVersion)
MongoVersion
- 指版本信息。具体支持的版本信息 ,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。 - MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本。 - MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本。 - MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本。 - MONGO_44_WT:MongoDB 4.4 WiredTiger存储引擎版本。 - MONGO_50_WT:MongoDB 5.0 WiredTiger存储引擎版本。 - MONGO_60_WT:MongoDB 6.0 WiredTiger存储引擎版本。public String getMachineCode()
public void setMachineCode(String MachineCode)
MachineCode
- 机器类型,HIO10G:高IO万兆。public Long getGoodsNum()
public void setGoodsNum(Long GoodsNum)
GoodsNum
- 实例数量,默认值为1, 最小值1,最大值为10public String getZone()
public void setZone(String Zone)
Zone
- 实例所属区域名称,格式如:ap-guangzhou-2public Long getTimeSpan()
public void setTimeSpan(Long TimeSpan)
TimeSpan
- 时长,购买月数public String getPassword()
public void setPassword(String Password)
Password
- 实例密码public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- 项目ID,不填为默认项目public String[] getSecurityGroup()
public void setSecurityGroup(String[] SecurityGroup)
SecurityGroup
- 安全组参数public String getUniqVpcId()
public void setUniqVpcId(String UniqVpcId)
UniqVpcId
- 私有网络ID,如果不传则默认选择基础网络public String getUniqSubnetId()
public void setUniqSubnetId(String UniqSubnetId)
UniqSubnetId
- 私有网络下的子网ID,如果设置了 VpcId,则 SubnetId必填public String getInstanceType()
public void setInstanceType(String InstanceType)
InstanceType
- 实例类型,REPLSET-副本集,SHARD-分片集群,默认为REPLSETCopyright © 2025. All rights reserved.