public class UpgradeDBInstanceRequest extends AbstractModel
| Constructor and Description | 
|---|
| UpgradeDBInstanceRequest() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getBackupZone()Get AZ information of secondary database 2, which is empty by default. | 
| Long | getDeployMode()Get Deployment mode. | 
| String | getEngineVersion()Get Version of primary instance database engine. | 
| String | getInstanceId()Get Instance ID in the format of `cdb-c1nl9rpv` or `cdbro-c1nl9rpv`. | 
| String | getInstanceRole()Get Instance type. | 
| Long | getMemory()Get Memory size in MB after upgrade. | 
| Long | getProtectMode()Get Data replication mode. | 
| String | getSlaveZone()Get AZ information of secondary database 1, which is the `Zone` value of the instance by default. | 
| Long | getVolume()Get Disk size in GB after upgrade. | 
| Long | getWaitSwitch()Get Mode of switch to new instance. | 
| void | setBackupZone(String BackupZone)Set AZ information of secondary database 2, which is empty by default. | 
| void | setDeployMode(Long DeployMode)Set Deployment mode. | 
| void | setEngineVersion(String EngineVersion)Set Version of primary instance database engine. | 
| void | setInstanceId(String InstanceId)Set Instance ID in the format of `cdb-c1nl9rpv` or `cdbro-c1nl9rpv`. | 
| void | setInstanceRole(String InstanceRole)Set Instance type. | 
| void | setMemory(Long Memory)Set Memory size in MB after upgrade. | 
| void | setProtectMode(Long ProtectMode)Set Data replication mode. | 
| void | setSlaveZone(String SlaveZone)Set AZ information of secondary database 1, which is the `Zone` value of the instance by default. | 
| void | setVolume(Long Volume)Set Disk size in GB after upgrade. | 
| void | setWaitSwitch(Long WaitSwitch)Set Mode of switch to new instance. | 
| 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, toJsonStringpublic String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId - Instance ID in the format of `cdb-c1nl9rpv` or `cdbro-c1nl9rpv`. It is the same as the instance ID displayed on the TencentDB Console page. You can use the [DescribeDBInstances](https://cloud.tencent.com/document/api/236/15872) API to query the ID, whose value is the `InstanceId` value in output parameters.public Long getMemory()
public void setMemory(Long Memory)
Memory - Memory size in MB after upgrade. To ensure that the `Memory` value to be passed in is valid, please use the [DescribeDBZoneConfig](https://cloud.tencent.com/document/product/236/17229) API to query the specifications of the memory that can be upgraded to.public Long getVolume()
public void setVolume(Long Volume)
Volume - Disk size in GB after upgrade. To ensure that the `Volume` value to be passed in is valid, please use the [DescribeDBZoneConfig](https://cloud.tencent.com/document/product/236/17229) API to query the specifications of the disk that can be upgraded to.public Long getProtectMode()
public void setProtectMode(Long ProtectMode)
ProtectMode - Data replication mode. Valid values: 0 (async), 1 (semi-sync), 2 (strong sync). This parameter can be specified when upgrading primary instances and is meaningless for read-only or disaster recovery instances.public Long getDeployMode()
public void setDeployMode(Long DeployMode)
DeployMode - Deployment mode. Valid values: 0 (single-AZ), 1 (multi-AZ). Default value: 0. This parameter can be specified when upgrading 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 of the instance by default. This parameter can be specified when upgrading primary instances in multi-AZ mode and is meaningless for read-only or disaster recovery instances. You can use the [DescribeDBZoneConfig](https://cloud.tencent.com/document/product/236/17229) API to query the supported AZs.public String getEngineVersion()
public void setEngineVersion(String EngineVersion)
EngineVersion - Version of primary instance database engine. Valid values: 5.5, 5.6, 5.7.public Long getWaitSwitch()
public void setWaitSwitch(Long WaitSwitch)
WaitSwitch - Mode of switch to new instance. Valid values: 0 (switch immediately), 1 (switch within a time window). Default value: 0. If the value is 1, the switch process will be performed within a time window. Or, you can call the [SwitchForUpgrade](https://cloud.tencent.com/document/product/236/15864) API to trigger the process.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 upgrading primary instances and is meaningless for read-only or disaster recovery instances.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.Copyright © 2020. All rights reserved.