public class CreateDBInstanceHourRequest extends AbstractModel
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 List of multi-AZ deployed nodes.
|
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 Machine type
- HIO: High IO
- HIO10G: 10-Gigabit high IO
|
Long |
getMemory()
Get Instance memory size in GB
|
Long |
getMongosCpu()
Get Number of Mongos CPU cores
- This parameter is not required for a sharded cluster instance of MongoDB 3.6 WiredTiger or later.
|
Long |
getMongosMemory()
Get Mongos memory size
- This parameter is not required for a sharded cluster instance of MongoDB 3.6 WiredTiger or later.
|
Long |
getMongosNodeNum()
Get Number of Monogs
- This parameter is not required for a sharded cluster instance of MongoDB 3.6 WiredTiger or later.
|
String |
getMongoVersion()
Get Version information.
|
Long |
getNodeNum()
Get The number of nodes in each replica set.
|
String |
getPassword()
Get Instance password
- If it is left empty, the password is in the default format of "instance ID+@+root account UIN".
|
Long |
getProjectId()
Get Project ID.
|
String[] |
getReadonlyNodeAvailabilityZoneList()
Get AZ of read-only nodes, which is required when `ReadonlyNodeNum` is not `0` in cross-AZ instance deployment.
|
Long |
getReadonlyNodeNum()
Get Number of read-only nodes.
|
Long |
getReplicateSetNum()
Get Number of replica sets
- Number of the replica set instances to be created.
|
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
|
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 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 List of multi-AZ deployed nodes.
|
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 Machine type
- HIO: High IO
- HIO10G: 10-Gigabit high IO
|
void |
setMemory(Long Memory)
Set Instance memory size in GB
|
void |
setMongosCpu(Long MongosCpu)
Set Number of Mongos CPU cores
- This parameter is not required for a sharded cluster instance of MongoDB 3.6 WiredTiger or later.
|
void |
setMongosMemory(Long MongosMemory)
Set Mongos memory size
- This parameter is not required for a sharded cluster instance of MongoDB 3.6 WiredTiger or later.
|
void |
setMongosNodeNum(Long MongosNodeNum)
Set Number of Monogs
- This parameter is not required for a sharded cluster instance of MongoDB 3.6 WiredTiger or later.
|
void |
setMongoVersion(String MongoVersion)
Set Version information.
|
void |
setNodeNum(Long NodeNum)
Set The number of nodes in each replica set.
|
void |
setPassword(String Password)
Set Instance password
- If it is left empty, the password is in the default format of "instance ID+@+root account UIN".
|
void |
setProjectId(Long ProjectId)
Set Project ID.
|
void |
setReadonlyNodeAvailabilityZoneList(String[] ReadonlyNodeAvailabilityZoneList)
Set AZ of read-only nodes, which is required when `ReadonlyNodeNum` is not `0` in cross-AZ instance deployment.
|
void |
setReadonlyNodeNum(Long ReadonlyNodeNum)
Set Number of read-only nodes.
|
void |
setReplicateSetNum(Long ReplicateSetNum)
Set Number of replica sets
- Number of the replica set instances to be created.
|
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
|
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 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, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreateDBInstanceHourRequest()
public CreateDBInstanceHourRequest(CreateDBInstanceHourRequest source)
public Long getMemory()
public void setMemory(Long Memory)
Memory
- Instance memory size in GBpublic Long getVolume()
public void setVolume(Long Volume)
Volume
- Instance disk size in GBpublic Long getReplicateSetNum()
public void setReplicateSetNum(Long ReplicateSetNum)
ReplicateSetNum
- Number of replica sets
- Number of the replica set instances to be created. Valid value: `1`.
- Number of sharded cluster instances to be created. You can get the specific purchasable specifications through the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API.public Long getNodeNum()
public void setNodeNum(Long NodeNum)
NodeNum
- The number of nodes in each replica set. You can get the specific purchasable specifications through the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API.public String getMongoVersion()
public void setMongoVersion(String MongoVersion)
MongoVersion
- Version information. You can get the specific purchasable specifications through the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API.
- MONGO_36_WT:MongoDB 3.6 WiredTiger storage engine
- MONGO_40_WT:MongoDB 4.0 WiredTiger storage engine
- MONGO_42_WT:MongoDB 4.2 WiredTiger storage engine
- MONGO_44_WT:MongoDB 4.4 WiredTiger storage enginepublic String getMachineCode()
public void setMachineCode(String MachineCode)
MachineCode
- Machine type
- HIO: High IO
- HIO10G: 10-Gigabit high IOpublic 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 IDpublic String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- VPC subnet ID. If `VpcId` is set, then `SubnetId` will be required.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 Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID. If it is left empty, `Default project` will be used.public TagInfo[] getTags()
public void setTags(TagInfo[] Tags)
Tags
- Instance tag informationpublic Long getClone()
public void setClone(Long Clone)
Clone
- Instance type. Valid values:
- `1`: Primary instance
- `3`: Read-only instance
- `4`: Disaster recovery instancepublic 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 grouppublic 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
- List of multi-AZ deployed nodes. For more information, query through the [DescribeSpecInfo](https://intl.cloud.tencent.com/document/product/240/38567?from_cn_redirect=1) API.
- Nodes of a multi-AZ instance must be deployed across three AZs. Most nodes of the cluster can’t be deployed in the same AZ. For example, a three-node sharded cluster instance does not support deploying two or more nodes in the same AZ.
- MongoDB 4.2 and later versions do not support multi-AZ deployment.
- Read-only and disaster recovery instances do not support multi-AZ deployment.
-Instances in the classic network do not support multi-AZ deployment.public Long getMongosCpu()
public void setMongosCpu(Long MongosCpu)
MongosCpu
- Number of Mongos CPU cores
- This parameter is not required for a sharded cluster instance of MongoDB 3.6 WiredTiger or later.
- If this parameter is not configured, the mongos specification will be configured based on the mongod specification, and the default specification is free of charge.public Long getMongosMemory()
public void setMongosMemory(Long MongosMemory)
MongosMemory
- Mongos memory size
- This parameter is not required for a sharded cluster instance of MongoDB 3.6 WiredTiger or later.
- If this parameter is not configured, the mongos specification will be configured based on the mongod specification, and the default specification is free of charge.public Long getMongosNodeNum()
public void setMongosNodeNum(Long MongosNodeNum)
MongosNodeNum
- Number of Monogs
- This parameter is not required for a sharded cluster instance of MongoDB 3.6 WiredTiger or later.
- If this parameter is not configured, the mongos specification will be configured based on the mongod specification, and the default specification is free of charge.public Long getReadonlyNodeNum()
public void setReadonlyNodeNum(Long ReadonlyNodeNum)
ReadonlyNodeNum
- Number of read-only nodes. Value range: 0-5.public String[] getReadonlyNodeAvailabilityZoneList()
public void setReadonlyNodeAvailabilityZoneList(String[] ReadonlyNodeAvailabilityZoneList)
ReadonlyNodeAvailabilityZoneList
- AZ of read-only nodes, which is required when `ReadonlyNodeNum` is not `0` in cross-AZ instance deployment.public String getHiddenZone()
public void setHiddenZone(String HiddenZone)
HiddenZone
- AZ where the hidden node resides, which is required in cross-AZ instance deployment.Copyright © 2023. All rights reserved.