public class CreateDBInstanceHourRequest extends AbstractModel
Constructor and Description |
---|
CreateDBInstanceHourRequest() |
Modifier and Type | Method and Description |
---|---|
Long |
getClone()
Get Valid values: 1 (regular instance), 2 (temp instance), 3 (read-only instance), 4 (disaster recovery instance).
|
String |
getClusterType()
Get Instance type.
|
String |
getFather()
Get Parent instance ID.
|
Long |
getGoodsNum()
Get Number of instances.
|
String |
getMachineCode()
Get Server type.
|
Long |
getMemory()
Get Instance memory size in GB
|
String |
getMongoVersion()
Get Version number.
|
Long |
getNodeNum()
Get Number of nodes in each replica set.
|
String |
getPassword()
Get Instance password.
|
Long |
getProjectId()
Get Project ID.
|
Long |
getReplicateSetNum()
Get Number of replica sets.
|
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
|
void |
setClone(Long Clone)
Set Valid values: 1 (regular instance), 2 (temp instance), 3 (read-only instance), 4 (disaster recovery instance).
|
void |
setClusterType(String ClusterType)
Set Instance type.
|
void |
setFather(String Father)
Set Parent instance ID.
|
void |
setGoodsNum(Long GoodsNum)
Set Number of instances.
|
void |
setMachineCode(String MachineCode)
Set Server type.
|
void |
setMemory(Long Memory)
Set Instance memory size in GB
|
void |
setMongoVersion(String MongoVersion)
Set Version number.
|
void |
setNodeNum(Long NodeNum)
Set Number of nodes in each replica set.
|
void |
setPassword(String Password)
Set Instance password.
|
void |
setProjectId(Long ProjectId)
Set Project ID.
|
void |
setReplicateSetNum(Long ReplicateSetNum)
Set Number of replica sets.
|
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
|
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 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
- Number of nodes in each replica set. Currently, the number of nodes in a replica set is fixed at 3, while the number of shards is customizable. For more information, please see the parameter returned by the DescribeSpecInfo APIpublic 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 Editionpublic 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 information in the format of ap-guangzhou-2public 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. If this parameter is not set, you need to set an instance password through the password setting API after creating an instance. The password can only contain 8-16 characters and must contain at least two of the following types of characters: letters, digits, and special characters `!@#%^*()` |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
- Valid values: 1 (regular instance), 2 (temp instance), 3 (read-only instance), 4 (disaster recovery 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.Copyright © 2020. All rights reserved.