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 |
---|---|
Long[] |
getAlarmPolicyList()
Get The array of alarm policy IDs.
|
Long |
getAutoRenewFlag()
Get This field is meaningless when purchasing pay-as-you-go instances.
|
Long |
getAutoSyncFlag()
Get Whether to automatically start disaster recovery synchronization.
|
String |
getBackupZone()
Get The availability zone information of Replica 2, which is left 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.
|
Long |
getCpu()
Get The number of CPU cores of the instance.
|
String |
getDeployGroupId()
Get Placement group ID.
|
Long |
getDeployMode()
Get Multi-AZ.
|
String |
getDeviceType()
Get Instance resource isolation type.
|
String |
getEngineVersion()
Get MySQL version.
|
Long |
getGoodsNum()
Get Number of instances.
|
String |
getInstanceName()
Get Instance name.
|
Long |
getInstanceNodes()
Get The number of nodes of the instance.
|
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`.
|
Long |
getParamTemplateId()
Get Parameter template ID.
|
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 |
setAlarmPolicyList(Long[] AlarmPolicyList)
Set The array of alarm policy IDs.
|
void |
setAutoRenewFlag(Long AutoRenewFlag)
Set This field is meaningless when purchasing pay-as-you-go instances.
|
void |
setAutoSyncFlag(Long AutoSyncFlag)
Set Whether to automatically start disaster recovery synchronization.
|
void |
setBackupZone(String BackupZone)
Set The availability zone information of Replica 2, which is left 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 |
setCpu(Long Cpu)
Set The number of CPU cores of the instance.
|
void |
setDeployGroupId(String DeployGroupId)
Set Placement group ID.
|
void |
setDeployMode(Long DeployMode)
Set Multi-AZ.
|
void |
setDeviceType(String DeviceType)
Set Instance resource isolation type.
|
void |
setEngineVersion(String EngineVersion)
Set MySQL version.
|
void |
setGoodsNum(Long GoodsNum)
Set Number of instances.
|
void |
setInstanceName(String InstanceName)
Set Instance name.
|
void |
setInstanceNodes(Long InstanceNodes)
Set The number of nodes of the instance.
|
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 |
setParamTemplateId(Long ParamTemplateId)
Set Parameter template ID.
|
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 CreateDBInstanceHourRequest()
public CreateDBInstanceHourRequest(CreateDBInstanceHourRequest source)
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://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) 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://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) 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`, `8.0`. You can use the [DescribeDBZoneConfig](https://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) API to query the supported 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](https://intl.cloud.tencent.com/document/api/215/15778?from_cn_redirect=1) 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](https://intl.cloud.tencent.com/document/api/215/15784?from_cn_redirect=1) 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://intl.cloud.tencent.com/document/product/378/4400?from_cn_redirect=1) 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://intl.cloud.tencent.com/document/api/236/17229?from_cn_redirect=1) 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://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) 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://intl.cloud.tencent.com/document/api/236/32662?from_cn_redirect=1) 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
- The availability zone information of Replica 2, which is left empty by default. Specify this parameter when purchasing a source instance in the one-source-two-replica architecture.public String[] getSecurityGroup()
public void setSecurityGroup(String[] SecurityGroup)
SecurityGroup
- Security group parameter. You can use the [DescribeProjectSecurityGroups](https://intl.cloud.tencent.com/document/api/236/15850?from_cn_redirect=1) 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 resource isolation type. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance), `BASIC` (basic instance). Default value: `UNIVERSAL`.public Long getParamTemplateId()
public void setParamTemplateId(Long ParamTemplateId)
ParamTemplateId
- Parameter template ID.public Long[] getAlarmPolicyList()
public void setAlarmPolicyList(Long[] AlarmPolicyList)
AlarmPolicyList
- The array of alarm policy IDs.public Long getInstanceNodes()
public void setInstanceNodes(Long InstanceNodes)
InstanceNodes
- The number of nodes of the instance. To purchase a read-only replica or a basic instance, set this parameter to `1` or leave it empty. To purchase a three-node instance, set this parameter to `3` or specify the `BackupZone` parameter. If the instance to be purchased is a source instance and both `BackupZone` and this parameter are left empty, the value `2` will be used, which indicates the source instance will have two nodes.public Long getCpu()
public void setCpu(Long Cpu)
Cpu
- The number of CPU cores of the instance. If this parameter is left empty, the number of CPU cores depends on the `Memory` value.public Long getAutoSyncFlag()
public void setAutoSyncFlag(Long AutoSyncFlag)
AutoSyncFlag
- Whether to automatically start disaster recovery synchronization. This parameter takes effect only for disaster recovery instances. Valid values: `0` (no), `1` (yes).Copyright © 2021. All rights reserved.