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 AZ list when multi-AZ deployment is enabled.
|
Long |
getClone()
Get Instance type.
|
String |
getClusterType()
Get Instance type.
|
String |
getFather()
Get Parent instance ID.
|
Long |
getGoodsNum()
Get Number of instances.
|
String |
getInstanceName()
Get Instance name, which can contain up to 60 letters, digits, or symbols (_-).
|
String |
getMachineCode()
Get Server type.
|
Long |
getMemory()
Get Instance memory size in GB
|
Long |
getMongosCpu()
Get The number of mongos CPUs, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger.
|
Long |
getMongosMemory()
Get The size of mongos memory, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger.
|
Long |
getMongosNodeNum()
Get The number of mongos routers, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger.
|
String |
getMongoVersion()
Get Version number.
|
Long |
getNodeNum()
Get The number of nodes in each replica set.
|
String |
getPassword()
Get Instance password, which must contain 8 to 16 characters and comprise at least two of the following types: letters, digits, and symbols (!@#%^*()).
|
Long |
getProjectId()
Get Project ID.
|
Long |
getReplicateSetNum()
Get Number of replica sets.
|
String |
getRestoreTime()
Get The point in time to which the cloned instance will be rolled back.
|
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 in the format of ap-guangzhou-2.
|
void |
setAvailabilityZoneList(String[] AvailabilityZoneList)
Set AZ list when multi-AZ deployment is enabled.
|
void |
setClone(Long Clone)
Set Instance type.
|
void |
setClusterType(String ClusterType)
Set Instance type.
|
void |
setFather(String Father)
Set Parent instance ID.
|
void |
setGoodsNum(Long GoodsNum)
Set Number of instances.
|
void |
setInstanceName(String InstanceName)
Set Instance name, which can contain up to 60 letters, digits, or symbols (_-).
|
void |
setMachineCode(String MachineCode)
Set Server type.
|
void |
setMemory(Long Memory)
Set Instance memory size in GB
|
void |
setMongosCpu(Long MongosCpu)
Set The number of mongos CPUs, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger.
|
void |
setMongosMemory(Long MongosMemory)
Set The size of mongos memory, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger.
|
void |
setMongosNodeNum(Long MongosNodeNum)
Set The number of mongos routers, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger.
|
void |
setMongoVersion(String MongoVersion)
Set Version number.
|
void |
setNodeNum(Long NodeNum)
Set The number of nodes in each replica set.
|
void |
setPassword(String Password)
Set Instance password, which must contain 8 to 16 characters and comprise at least two of the following types: letters, digits, and symbols (!@#%^*()).
|
void |
setProjectId(Long ProjectId)
Set Project ID.
|
void |
setReplicateSetNum(Long ReplicateSetNum)
Set Number of replica sets.
|
void |
setRestoreTime(String RestoreTime)
Set The point in time to which the cloned instance will be rolled back.
|
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 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 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. When a replica set instance is created, this parameter must be set to 1. When a sharding instance is created, please see the parameters returned by the DescribeSpecInfo APIpublic Long getNodeNum()
public void setNodeNum(Long NodeNum)
NodeNum
- The number of nodes in each replica set. The value range is subject to the response parameter of the `DescribeSpecInfo` API.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; MONGO_42_WT: MongoDB 4.2 WiredTiger Edition.public String getMachineCode()
public void setMachineCode(String MachineCode)
MachineCode
- Server type. HIO: high IO; HIO10G: 10-Gigabit high IOpublic Long getGoodsNum()
public void setGoodsNum(Long GoodsNum)
GoodsNum
- Number of instances. Minimum value: 1. Maximum value: 10public String getZone()
public void setZone(String Zone)
Zone
- AZ in the format of ap-guangzhou-2. 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 type. REPLSET: replica set; SHARD: sharding clusterpublic String getVpcId()
public void setVpcId(String VpcId)
VpcId
- VPC ID. If this parameter is not set, the basic network will be selected by defaultpublic String getSubnetId()
public void setSubnetId(String SubnetId)
SubnetId
- VPC subnet ID. If VpcId is set, then SubnetId will be requiredpublic String getPassword()
public void setPassword(String Password)
Password
- Instance password, which must contain 8 to 16 characters and comprise at least two of the following types: letters, digits, and symbols (!@#%^*()). If it is left empty, the password is in the 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".public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID. If this parameter is not set, the default project will be usedpublic 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), `2` (temp instance), `3` (read-only instance), `4` (disaster recovery instance), `5` (cloned instance).public String getFather()
public void setFather(String Father)
Father
- Parent instance ID. It is required if the `Clone` is 3 or 4.public String[] getSecurityGroup()
public void setSecurityGroup(String[] SecurityGroup)
SecurityGroup
- Security group.public String getRestoreTime()
public void setRestoreTime(String RestoreTime)
RestoreTime
- The point in time to which the cloned instance will be rolled back. This parameter is required for a cloned instance. The point in time in the format of 2021-08-13 16:30:00 must be within the last seven days.public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance name, which can contain up to 60 letters, digits, or symbols (_-).public String[] getAvailabilityZoneList()
public void setAvailabilityZoneList(String[] AvailabilityZoneList)
AvailabilityZoneList
- AZ list when multi-AZ deployment is enabled. For the specific purchasable versions which support multi-AZ deployment, please see the return result of the `DescribeSpecInfo` API. Notes: 1. Nodes of a multi-AZ instance must be deployed across three AZs. 2. To ensure a successful cross-AZ switch, you should not deploy most of the nodes to the same AZ. (For example, a three-node sharded cluster instance does not support deploying two or more nodes in the same AZ.) 3. MongoDB 4.2 and later versions do not support multi-AZ deployment. 4. Read-Only and disaster recovery instances do not support multi-AZ deployment. 5. Instances in the classic network do not support multi-AZ deployment.public Long getMongosCpu()
public void setMongosCpu(Long MongosCpu)
MongosCpu
- The number of mongos CPUs, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger. For the specific purchasable versions supported, please see the return result of the `DescribeSpecInfo` API.public Long getMongosMemory()
public void setMongosMemory(Long MongosMemory)
MongosMemory
- The size of mongos memory, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger. For the specific purchasable versions supported, please see the return result of the `DescribeSpecInfo` API.public Long getMongosNodeNum()
public void setMongosNodeNum(Long MongosNodeNum)
MongosNodeNum
- The number of mongos routers, which is required for a sharded cluster instance of MongoDB 4.2 WiredTiger. For the specific purchasable versions supported, please see the return result of the `DescribeSpecInfo` API. Note: please purchase 3-32 mongos routers for high availability.Copyright © 2022. All rights reserved.