public class CreateDBInstanceHourRequest extends AbstractModel
header, skipSign
Constructor and Description |
---|
CreateDBInstanceHourRequest() |
CreateDBInstanceHourRequest(CreateDBInstanceHourRequest 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[] |
getAvailabilityZoneList()
Get Specifies the list of AZs during multi-AZ deployment of TencentDB for MongoDB instances.
|
Long |
getClone()
Get Instance type.
|
String |
getClusterType()
Get Instance architecture type
- REPLSET: Replica set
- SHARD: Sharded cluster
|
String |
getFather()
Get Parent instance ID.
|
Long |
getGoodsNum()
Get Number of instances.
|
String |
getHiddenZone()
Get AZ where the hidden node resides, which is required in cross-AZ instance deployment.
|
String |
getInstanceName()
Get Instance name, which can contain up to 60 letters, digits, and symbols (_-).
|
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 |
getMongosNodeNum()
Get Number of Mongos nodes.
|
String |
getMongoVersion()
Get Information on the specific supported versions.
|
Long |
getNodeNum()
Get - Specifies the number of primary and secondary nodes for each replica set during replica set instance creation.
|
String |
getParamTemplateId()
Get Parameter template ID.
|
String |
getPassword()
Get Instance password.
|
Long |
getProjectId()
Get Project ID.
|
String[] |
getReadonlyNodeAvailabilityZoneList()
Get Array of AZs of read-only nodes.
|
Long |
getReadonlyNodeNum()
Get Number of read-only nodes.
|
Long |
getReplicateSetNum()
Get - Specifies the number of replica sets during replica set instance creation.
|
String |
getRestoreTime()
Get Rollback time of the cloned instance
- This parameter is required for a cloned instance in the format of 2021-08-13 16:30:00.
|
String[] |
getSecurityGroup()
Get Security group ID.
|
String |
getSubnetId()
Get VPC subnet.
|
TagInfo[] |
getTags()
Get Instance tag information
|
Long |
getVolume()
Get Instance disk size.
|
String |
getVpcId()
Get VPC ID.
|
String |
getZone()
Get AZ information in the format of ap-guangzhou-2
- For more information, query through the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API.
|
void |
setAvailabilityZoneList(String[] AvailabilityZoneList)
Set Specifies the list of AZs during multi-AZ deployment of TencentDB for MongoDB instances.
|
void |
setClone(Long Clone)
Set Instance type.
|
void |
setClusterType(String ClusterType)
Set Instance architecture type
- REPLSET: Replica set
- SHARD: Sharded cluster
|
void |
setFather(String Father)
Set Parent instance ID.
|
void |
setGoodsNum(Long GoodsNum)
Set Number of instances.
|
void |
setHiddenZone(String HiddenZone)
Set AZ where the hidden node resides, which is required in cross-AZ instance deployment.
|
void |
setInstanceName(String InstanceName)
Set Instance name, which can contain up to 60 letters, digits, and symbols (_-).
|
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 |
setMongosNodeNum(Long MongosNodeNum)
Set Number of Mongos nodes.
|
void |
setMongoVersion(String MongoVersion)
Set Information on the specific supported versions.
|
void |
setNodeNum(Long NodeNum)
Set - Specifies the number of primary and secondary nodes for each replica set during replica set instance creation.
|
void |
setParamTemplateId(String ParamTemplateId)
Set Parameter template ID.
|
void |
setPassword(String Password)
Set Instance password.
|
void |
setProjectId(Long ProjectId)
Set Project ID.
|
void |
setReadonlyNodeAvailabilityZoneList(String[] ReadonlyNodeAvailabilityZoneList)
Set Array of AZs of read-only nodes.
|
void |
setReadonlyNodeNum(Long ReadonlyNodeNum)
Set Number of read-only nodes.
|
void |
setReplicateSetNum(Long ReplicateSetNum)
Set - Specifies the number of replica sets during replica set instance creation.
|
void |
setRestoreTime(String RestoreTime)
Set Rollback time of the cloned instance
- This parameter is required for a cloned instance in the format of 2021-08-13 16:30:00.
|
void |
setSecurityGroup(String[] SecurityGroup)
Set Security group ID.
|
void |
setSubnetId(String SubnetId)
Set VPC subnet.
|
void |
setTags(TagInfo[] Tags)
Set Instance tag information
|
void |
setVolume(Long Volume)
Set Instance disk size.
|
void |
setVpcId(String VpcId)
Set VPC ID.
|
void |
setZone(String Zone)
Set AZ information in the format of ap-guangzhou-2
- For more information, query through the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API.
|
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 CreateDBInstanceHourRequest()
public CreateDBInstanceHourRequest(CreateDBInstanceHourRequest source)
public Long getMemory()
public void setMemory(Long Memory)
Memory
- Instance memory size. Unit: GB. Call the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API to obtain specific saleable memory specifications.public Long getVolume()
public void setVolume(Long Volume)
Volume
- Instance disk size. Unit: GB. Call the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API to obtain the maximum and minimum disk sizes corresponding to each CPU specification.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 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 String getMongoVersion()
public void setMongoVersion(String MongoVersion)
MongoVersion
- Information on the specific supported versions. Call the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API to obtain such versions.
- 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 type.public Long getGoodsNum()
public void setGoodsNum(Long GoodsNum)
GoodsNum
- Number of instances. Value range: 1-10.public String getZone()
public void setZone(String Zone)
Zone
- AZ information in the format of ap-guangzhou-2
- For more information, query through the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API.
- If multi-AZ deployment is enabled, this parameter refers to the primary AZ and must be one of the values of `AvailabilityZoneList`.public String getClusterType()
public void setClusterType(String ClusterType)
ClusterType
- Instance architecture type
- REPLSET: Replica set
- SHARD: Sharded clusterpublic String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID. Log in to the [VPC console](https://console.cloud.tencent.com/vpc) to query the correct ID. Example value: vpc-pxyzim13.public String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- VPC subnet. Log in to the [VPC console](https://console.cloud.tencent.com/VPC) to query the subnet list and confirm the correct ID. Example value: subnet-7jbabche.public String getPassword()
public void setPassword(String Password)
Password
- Instance password. The requirements are as follows:
- The number of characters should be in the range of [8, 32].
- Characters within the ranges [A,Z], [a,z], and [0,9] are allowed.
- Special characters that can be entered include exclamation marks (!), at signs (@), number signs (#), percent signs (%), carets (^), asterisks (\*), brackets (()), and underscores (_).
- It cannot contain only the same letters or digits.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID. - The default project is used if this parameter is not specified.
- The project ID can be obtained on the [project management page in the TencentDB for MongoDB console](https://console.cloud.tencent.com/project).public TagInfo[] getTags()
public void setTags(TagInfo[] Tags)
Tags
- Instance tag informationpublic Long getClone()
public void setClone(Long Clone)
Clone
- Instance type. 1: formal instance; 3: read-only instance; 4: disaster recovery instance; 5: cloned instance. Note: For a cloned instance, RestoreTime is required.public String getFather()
public void setFather(String Father)
Father
- Parent instance ID. It is required if the `Clone` is `3` or `4`, that is, read-only instance or disaster recovery instancepublic String[] getSecurityGroup()
public void setSecurityGroup(String[] SecurityGroup)
SecurityGroup
- Security group ID.public String getRestoreTime()
public void setRestoreTime(String RestoreTime)
RestoreTime
- Rollback time of the cloned instance
- This parameter is required for a cloned instance in the format of 2021-08-13 16:30:00.
- Time range for rollback: You can roll back data in the last 7 days.public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance name, which can contain up to 60 letters, digits, and symbols (_-).public String[] getAvailabilityZoneList()
public void setAvailabilityZoneList(String[] AvailabilityZoneList)
AvailabilityZoneList
- Specifies the list of AZs during multi-AZ deployment of TencentDB for MongoDB instances.
- For instances in multi-AZ deployment mode, the **Zone** parameter specifies the primary AZ, and **AvailabilityZoneList** specifies all AZs, including the primary AZ. Format: [ap-guangzhou-2,ap-guangzhou-3,ap-guangzhou-4].
- The [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API can be called to obtain AZs planned for TencentDB for MongoDB instances in different regions, helping you specify valid AZs.
- Nodes in multi-AZ deployment mode can only be deployed in 3 different AZs. Deploying most nodes of a cluster in the same AZ is not supported. For example, a 3-node cluster does not support deploying 2 nodes in the same AZ.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.public Long getMongosMemory()
public void setMongosMemory(Long MongosMemory)
MongosMemory
- Mongos node memory size.
- This parameter is required during sharded cluster instance purchase.
- Unit: GB. 1-core 2GB, 2-core 4GB, 4-core 8GB, 8-core 16GB, and 16-core 32GB are supported.public Long getMongosNodeNum()
public void setMongosNodeNum(Long MongosNodeNum)
MongosNodeNum
- Number of Mongos nodes. This parameter is required during sharded cluster instance purchase.
- For instances in single-AZ deployment mode, the value range is [3,32].
- For instances in multi-AZ deployment mode, the value range is [6,32].public Long getReadonlyNodeNum()
public void setReadonlyNodeNum(Long ReadonlyNodeNum)
ReadonlyNodeNum
- Number of read-only nodes. Value ranges: [0,5].public String[] getReadonlyNodeAvailabilityZoneList()
public void setReadonlyNodeAvailabilityZoneList(String[] ReadonlyNodeAvailabilityZoneList)
ReadonlyNodeAvailabilityZoneList
- Array of AZs of read-only nodes. This parameter is required for instances in multi-AZ deployment mode when **ReadonlyNodeNum** is not set to **0**.public String getHiddenZone()
public void setHiddenZone(String HiddenZone)
HiddenZone
- AZ where the hidden node resides, which is required in cross-AZ instance deployment.public String getParamTemplateId()
public void setParamTemplateId(String ParamTemplateId)
ParamTemplateId
- Parameter template ID. A parameter template is a collection of MongoDB parameters with preset values. You can save a group of parameters and values with the same requirements as a template. When you create an instance, you can directly reference these parameter values in the instance. Proper use of parameter templates can improve the efficiency of operations on TencentDB for MongoDB databases. The template list can be obtained by calling the DescribeDBInstanceParamTpl API. Pay attention to the database versions supported by templates.Copyright © 2025. All rights reserved.