public class InquirePriceCreateDBInstancesRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
InquirePriceCreateDBInstancesRequest() |
InquirePriceCreateDBInstancesRequest(InquirePriceCreateDBInstancesRequest 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 |
getClusterType()
Get Instance type.
|
Long |
getConfigServerCpu()
Get Specifies the number of ConfigServer CPU cores.
|
Long |
getConfigServerMemory()
Get Specifies the ConfigServer memory size.
|
Long |
getConfigServerVolume()
Get Specifies the ConfigServer disk size.
|
Long |
getGoodsNum()
Get Number of instances.
|
String |
getInstanceChargeType()
Get Instance payment method.
|
String |
getMachineCode()
Get Product specification type.
|
Long |
getMemory()
Get Instance memory size.
|
Long |
getMongosCpu()
Get Number of Mongos node CPU cores.
|
Long |
getMongosMemory()
Get Mongos node memory size.
|
Long |
getMongosNum()
Get Specifies the number of Mongos nodes.
|
String |
getMongoVersion()
Get Instance version information.
|
Long |
getNodeNum()
Get - Specifies the number of primary and secondary nodes for each replica set during replica set instance creation.
|
Long |
getPeriod()
Get - When the monthly subscription mode is selected, that is, when InstanceChargeType is set to PREPAID, this parameter is required for specifying the purchase duration of instances.
|
Long |
getReplicateSetNum()
Get - Specifies the number of replica sets during replica set instance creation.
|
Long |
getVolume()
Get Instance disk size.
|
String |
getZone()
Get Instance region name in the format of ap-guangzhou-2.
|
void |
setClusterType(String ClusterType)
Set Instance type.
|
void |
setConfigServerCpu(Long ConfigServerCpu)
Set Specifies the number of ConfigServer CPU cores.
|
void |
setConfigServerMemory(Long ConfigServerMemory)
Set Specifies the ConfigServer memory size.
|
void |
setConfigServerVolume(Long ConfigServerVolume)
Set Specifies the ConfigServer disk size.
|
void |
setGoodsNum(Long GoodsNum)
Set Number of instances.
|
void |
setInstanceChargeType(String InstanceChargeType)
Set Instance payment method.
|
void |
setMachineCode(String MachineCode)
Set Product specification type.
|
void |
setMemory(Long Memory)
Set Instance memory size.
|
void |
setMongosCpu(Long MongosCpu)
Set Number of Mongos node CPU cores.
|
void |
setMongosMemory(Long MongosMemory)
Set Mongos node memory size.
|
void |
setMongosNum(Long MongosNum)
Set Specifies the number of Mongos nodes.
|
void |
setMongoVersion(String MongoVersion)
Set Instance version information.
|
void |
setNodeNum(Long NodeNum)
Set - Specifies the number of primary and secondary nodes for each replica set during replica set instance creation.
|
void |
setPeriod(Long Period)
Set - When the monthly subscription mode is selected, that is, when InstanceChargeType is set to PREPAID, this parameter is required for specifying the purchase duration of instances.
|
void |
setReplicateSetNum(Long ReplicateSetNum)
Set - Specifies the number of replica sets during replica set instance creation.
|
void |
setVolume(Long Volume)
Set Instance disk size.
|
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, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public InquirePriceCreateDBInstancesRequest()
public InquirePriceCreateDBInstancesRequest(InquirePriceCreateDBInstancesRequest source)
public String getZone()
public void setZone(String Zone)
Zone
- Instance region name in the format of ap-guangzhou-2.public Long getNodeNum()
public void setNodeNum(Long NodeNum)
NodeNum
- - Specifies the number of primary and secondary nodes for each replica set during replica set instance creation. Call the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API to obtain the maximum and minimum number of nodes supported for each replica set.
- Specifies the number of primary and secondary nodes for each shard during sharded cluster instance creation. Call the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API to obtain the maximum and minimum number of nodes supported for each shard.public Long getMemory()
public void setMemory(Long Memory)
Memory
- Instance memory size.
- Unit: GB.
- For the value range, call the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API. The CPU and Memory parameters in the returned data structure SpecItems correspond to the number of CPU cores and the memory specification, respectively.public Long getVolume()
public void setVolume(Long Volume)
Volume
- Instance disk size.
- Unit: GB.
- For the value range, call the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API. The MinStorage and MaxStorage parameters in the returned data structure SpecItems correspond to the minimum and maximum disk specifications, respectively.public String getMongoVersion()
public void setMongoVersion(String MongoVersion)
MongoVersion
- Instance version information. For specific supported versions, call the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API. The MongoVersionCode parameter in the returned data structure SpecItems indicates the information on versions supported for instances. The correspondence between version information and version number is as follows:
- MONGO_36_WT: version of the MongoDB 3.6 WiredTiger storage engine.
- MONGO_40_WT: version of the MongoDB 4.0 WiredTiger storage engine.
- MONGO_42_WT: version of the MongoDB 4.2 WiredTiger storage engine.
- MONGO_44_WT: version of the MongoDB 4.4 WiredTiger storage engine.
- MONGO_50_WT: version of the MongoDB 5.0 WiredTiger storage engine.
- MONGO_60_WT: version of the MongoDB 6.0 WiredTiger storage engine.public String getMachineCode()
public void setMachineCode(String MachineCode)
MachineCode
- Product specification type.
- HIO10G: general high-I/O 10GE type.
- HCD: cloud disk.public Long getGoodsNum()
public void setGoodsNum(Long GoodsNum)
GoodsNum
- Number of instances. Minimum value: 1. Maximum value: 10.public String getClusterType()
public void setClusterType(String ClusterType)
ClusterType
- Instance type.
- REPLSET: replica set.
- SHARD: sharded cluster.public Long getReplicateSetNum()
public void setReplicateSetNum(Long ReplicateSetNum)
ReplicateSetNum
- - Specifies the number of replica sets during replica set instance creation. This parameter can only be set to 1.
- Specifies the number of shards during sharded cluster instance creation. Call the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API to query the range of shard quantity. The parameters MinReplicateSetNum and MaxReplicateSetNum in the returned data structure SpecItems correspond to the minimum value and maximum value, respectively.public Long getPeriod()
public void setPeriod(Long Period)
Period
- - When the monthly subscription mode is selected, that is, when InstanceChargeType is set to PREPAID, this parameter is required for specifying the purchase duration of instances. Valid values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 24, and 36. Unit: months.
- When pay-as-you-go is selected, that is, when InstanceChargeType is set to **POSTPAID_BY_HOUR**, this parameter only can be set to 1.public String getInstanceChargeType()
public void setInstanceChargeType(String InstanceChargeType)
InstanceChargeType
- Instance payment method.
- PREPAID: monthly subscription.
- POSTPAID_BY_HOUR: pay-as-you-go.public Long getMongosCpu()
public void setMongosCpu(Long MongosCpu)
MongosCpu
- Number of Mongos node CPU cores. Valid values: 1, 2, 4, 8, and 16. This parameter is required during sharded cluster instance purchase. If this parameter is left blank, the default value 2 is used.public Long getMongosMemory()
public void setMongosMemory(Long MongosMemory)
MongosMemory
- Mongos node memory size. - This parameter is required during sharded cluster instance purchase. - Unit: GB. Valid values: 2 (for 1 core), 4 (for 2 cores), 8 (for 4 cores), 16 (for 8 cores), and 32 (for 16 cores). If this parameter is left blank, the default value 4 is used.public Long getMongosNum()
public void setMongosNum(Long MongosNum)
MongosNum
- Specifies the number of Mongos nodes. Value range: [3,32]. For querying the price of sharded cluster instances, this parameter is required. If it is left blank, the default value 3 is used.public Long getConfigServerCpu()
public void setConfigServerCpu(Long ConfigServerCpu)
ConfigServerCpu
- Specifies the number of ConfigServer CPU cores. The value is fixed as 1.public Long getConfigServerMemory()
public void setConfigServerMemory(Long ConfigServerMemory)
ConfigServerMemory
- Specifies the ConfigServer memory size. The value is fixed as 2. Unit: GB. This parameter can be left blank.public Long getConfigServerVolume()
public void setConfigServerVolume(Long ConfigServerVolume)
ConfigServerVolume
- Specifies the ConfigServer disk size. The value is fixed as 20. Unit: GB. This parameter can be left blank.Copyright © 2025. All rights reserved.