public class CreateDBInstanceHourRequest extends AbstractModel
Constructor and Description |
---|
CreateDBInstanceHourRequest() |
Modifier and Type | Method and Description |
---|---|
Long |
getAutoRenewFlag()
Get This field is meaningless when purchasing pay-as-you-go instances.
|
String |
getBackupZone()
Get AZ information of secondary database 2, which is empty by default.
|
String |
getClientToken()
Get A string that is used to guarantee the idempotency of the request, which is generated by the user and must be unique in each request on the same day.
|
String |
getDeployGroupId()
Get Placement group ID.
|
Long |
getDeployMode()
Get Multi-AZ.
|
String |
getDeviceType()
Get Instance type.
|
String |
getEngineVersion()
Get MySQL version.
|
Long |
getGoodsNum()
Get Number of instances.
|
String |
getInstanceName()
Get Instance name.
|
String |
getInstanceRole()
Get Instance type.
|
String |
getMasterInstanceId()
Get Instance ID, which is required and the same as the primary instance ID when purchasing read-only or disaster recovery instances.
|
String |
getMasterRegion()
Get AZ information of the primary instance, which is required for purchasing disaster recovery instances.
|
Long |
getMemory()
Get Instance memory size in MB.
|
ParamInfo[] |
getParamList()
Get List of parameters in the format of `ParamList.0.Name=auto_increment&ParamList.0.Value=1`.
|
String |
getPassword()
Get Sets the root account password.
|
Long |
getPort()
Get Custom port.
|
Long |
getProjectId()
Get Project ID.
|
Long |
getProtectMode()
Get Data replication mode.
|
TagInfo[] |
getResourceTags()
Get Instance tag information.
|
RoGroup |
getRoGroup()
Get Read-only instance information.
|
String[] |
getSecurityGroup()
Get Security group parameter.
|
String |
getSlaveZone()
Get AZ information of secondary database 1, which is the `Zone` value by default.
|
String |
getUniqSubnetId()
Get VPC subnet ID.
|
String |
getUniqVpcId()
Get VPC ID.
|
Long |
getVolume()
Get Instance disk size in GB.
|
String |
getZone()
Get AZ information.
|
void |
setAutoRenewFlag(Long AutoRenewFlag)
Set This field is meaningless when purchasing pay-as-you-go instances.
|
void |
setBackupZone(String BackupZone)
Set AZ information of secondary database 2, which is empty by default.
|
void |
setClientToken(String ClientToken)
Set A string that is used to guarantee the idempotency of the request, which is generated by the user and must be unique in each request on the same day.
|
void |
setDeployGroupId(String DeployGroupId)
Set Placement group ID.
|
void |
setDeployMode(Long DeployMode)
Set Multi-AZ.
|
void |
setDeviceType(String DeviceType)
Set Instance type.
|
void |
setEngineVersion(String EngineVersion)
Set MySQL version.
|
void |
setGoodsNum(Long GoodsNum)
Set Number of instances.
|
void |
setInstanceName(String InstanceName)
Set Instance name.
|
void |
setInstanceRole(String InstanceRole)
Set Instance type.
|
void |
setMasterInstanceId(String MasterInstanceId)
Set Instance ID, which is required and the same as the primary instance ID when purchasing read-only or disaster recovery instances.
|
void |
setMasterRegion(String MasterRegion)
Set AZ information of the primary instance, which is required for purchasing disaster recovery instances.
|
void |
setMemory(Long Memory)
Set Instance memory size in MB.
|
void |
setParamList(ParamInfo[] ParamList)
Set List of parameters in the format of `ParamList.0.Name=auto_increment&ParamList.0.Value=1`.
|
void |
setPassword(String Password)
Set Sets the root account password.
|
void |
setPort(Long Port)
Set Custom port.
|
void |
setProjectId(Long ProjectId)
Set Project ID.
|
void |
setProtectMode(Long ProtectMode)
Set Data replication mode.
|
void |
setResourceTags(TagInfo[] ResourceTags)
Set Instance tag information.
|
void |
setRoGroup(RoGroup RoGroup)
Set Read-only instance information.
|
void |
setSecurityGroup(String[] SecurityGroup)
Set Security group parameter.
|
void |
setSlaveZone(String SlaveZone)
Set AZ information of secondary database 1, which is the `Zone` value by default.
|
void |
setUniqSubnetId(String UniqSubnetId)
Set VPC subnet ID.
|
void |
setUniqVpcId(String UniqVpcId)
Set VPC ID.
|
void |
setVolume(Long Volume)
Set Instance disk size in GB.
|
void |
setZone(String Zone)
Set AZ information.
|
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 getGoodsNum()
public void setGoodsNum(Long GoodsNum)
GoodsNum
- Number of instances. Value range: 1-100. Default value: 1.public Long getMemory()
public void setMemory(Long Memory)
Memory
- Instance memory size in MB. Please use the [DescribeDBZoneConfig](https://cloud.tencent.com/document/api/236/17229) API to query the supported memory specifications.public Long getVolume()
public void setVolume(Long Volume)
Volume
- Instance disk size in GB. Please use the [DescribeDBZoneConfig](https://cloud.tencent.com/document/api/236/17229) API to query the supported disk specifications.public String getEngineVersion()
public void setEngineVersion(String EngineVersion)
EngineVersion
- MySQL version. Valid values: 5.5, 5.6, 5.7. Please use the [DescribeDBZoneConfig](https://cloud.tencent.com/document/api/236/17229) API to query the supported instance versions.public String getUniqVpcId()
public void setUniqVpcId(String UniqVpcId)
UniqVpcId
- VPC ID. If this parameter is not passed in, the basic network will be selected by default. Please use the [DescribeVpcs](/document/api/215/15778) API to query the VPCs.public String getUniqSubnetId()
public void setUniqSubnetId(String UniqSubnetId)
UniqSubnetId
- VPC subnet ID. If `UniqVpcId` is set, then `UniqSubnetId` will be required. Please use the [DescribeSubnets](/document/api/215/15784) API to query the subnet lists.public Long getProjectId()
public void setProjectId(Long ProjectId)
ProjectId
- Project ID. If this is left empty, the default project will be used. Please use the [DescribeProject](https://cloud.tencent.com/document/product/378/4400) API to get the project ID.public String getZone()
public void setZone(String Zone)
Zone
- AZ information. By default, the system will automatically select an AZ. Please use the [DescribeDBZoneConfig](https://cloud.tencent.com/document/api/236/17229) API to query the supported AZs.public String getMasterInstanceId()
public void setMasterInstanceId(String MasterInstanceId)
MasterInstanceId
- Instance ID, which is required and the same as the primary instance ID when purchasing read-only or disaster recovery instances. Please use the [DescribeDBInstances](https://cloud.tencent.com/document/api/236/15872) API to query the instance IDs.public String getInstanceRole()
public void setInstanceRole(String InstanceRole)
InstanceRole
- Instance type. Valid values: master (primary instance), dr (disaster recovery instance), ro (read-only instance). Default value: master.public String getMasterRegion()
public void setMasterRegion(String MasterRegion)
MasterRegion
- AZ information of the primary instance, which is required for purchasing disaster recovery instances.public Long getPort()
public void setPort(Long Port)
Port
- Custom port. Value range: [1024-65535].public String getPassword()
public void setPassword(String Password)
Password
- Sets the root account password. Rule: the password can contain 8-64 characters and must contain at least two of the following types of characters: letters, digits, and special symbols (_+-&=!@#$%^*()). This parameter can be specified when purchasing primary instances and is meaningless for read-only or disaster recovery instances.public ParamInfo[] getParamList()
public void setParamList(ParamInfo[] ParamList)
ParamList
- List of parameters in the format of `ParamList.0.Name=auto_increment&ParamList.0.Value=1`. You can use the [DescribeDefaultParams](https://cloud.tencent.com/document/api/236/32662) API to query the configurable parameters.public Long getProtectMode()
public void setProtectMode(Long ProtectMode)
ProtectMode
- Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). Default value: 0. This parameter can be specified when purchasing primary instances and is meaningless for read-only or disaster recovery instances.public Long getDeployMode()
public void setDeployMode(Long DeployMode)
DeployMode
- Multi-AZ. Valid value: 0 (single-AZ), 1 (multi-AZ). Default value: 0. This parameter can be specified when purchasing primary instances and is meaningless for read-only or disaster recovery instances.public String getSlaveZone()
public void setSlaveZone(String SlaveZone)
SlaveZone
- AZ information of secondary database 1, which is the `Zone` value by default. This parameter can be specified when purchasing primary instances and is meaningless for read-only or disaster recovery instances.public String getBackupZone()
public void setBackupZone(String BackupZone)
BackupZone
- AZ information of secondary database 2, which is empty by default. This parameter can be specified when purchasing strong sync primary instances and is meaningless for other types of instances.public String[] getSecurityGroup()
public void setSecurityGroup(String[] SecurityGroup)
SecurityGroup
- Security group parameter. You can use the [DescribeProjectSecurityGroups](https://cloud.tencent.com/document/api/236/15850) API to query the security group details of a project.public RoGroup getRoGroup()
public void setRoGroup(RoGroup RoGroup)
RoGroup
- Read-only instance information. This parameter must be passed in when purchasing read-only instances.public Long getAutoRenewFlag()
public void setAutoRenewFlag(Long AutoRenewFlag)
AutoRenewFlag
- This field is meaningless when purchasing pay-as-you-go instances.public String getInstanceName()
public void setInstanceName(String InstanceName)
InstanceName
- Instance name.public TagInfo[] getResourceTags()
public void setResourceTags(TagInfo[] ResourceTags)
ResourceTags
- Instance tag information.public String getDeployGroupId()
public void setDeployGroupId(String DeployGroupId)
DeployGroupId
- Placement group ID.public String getClientToken()
public void setClientToken(String ClientToken)
ClientToken
- A string that is used to guarantee the idempotency of the request, which is generated by the user and must be unique in each request on the same day. The maximum length is 64 ASCII characters. If this parameter is not specified, the idempotency of the request cannot be guaranteed.public String getDeviceType()
public void setDeviceType(String DeviceType)
DeviceType
- Instance type. Valid values: HA (High-Availability Edition), BASIC (Basic Edition). If this parameter is not specified, High-Availability Edition will be used by default.Copyright © 2020. All rights reserved.