public class UpgradeDBInstanceRequest extends AbstractModel
| Constructor and Description | 
|---|
| UpgradeDBInstanceRequest() | 
| UpgradeDBInstanceRequest(UpgradeDBInstanceRequest 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 | getBackupZone()Get AZ information of secondary database 2, which is empty by default. | 
| Long | getCpu()Get The number of CPU cores after the instance is upgraded. | 
| Long | getCrossCluster()Get Whether to migrate the source node across AZs. | 
| Long | getDeployMode()Get Deployment mode. | 
| String | getDeviceType()Get The resource isolation type after the instance is upgraded. | 
| String | getEngineVersion()Get Version of primary instance database engine. | 
| Long | getFastUpgrade()Get Whether to enable QuickChange. | 
| String | getInstanceId()Get Instance ID in the format of `cdb-c1nl9rpv` or `cdbro-c1nl9rpv`. | 
| String | getInstanceRole()Get Instance type. | 
| Long | getMaxDelayTime()Get Delay threshold. | 
| 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. | 
| String | getZoneId()Get New AZ of the source node. | 
| void | setBackupZone(String BackupZone)Set AZ information of secondary database 2, which is empty by default. | 
| void | setCpu(Long Cpu)Set The number of CPU cores after the instance is upgraded. | 
| void | setCrossCluster(Long CrossCluster)Set Whether to migrate the source node across AZs. | 
| void | setDeployMode(Long DeployMode)Set Deployment mode. | 
| void | setDeviceType(String DeviceType)Set The resource isolation type after the instance is upgraded. | 
| void | setEngineVersion(String EngineVersion)Set Version of primary instance database engine. | 
| void | setFastUpgrade(Long FastUpgrade)Set Whether to enable QuickChange. | 
| void | setInstanceId(String InstanceId)Set Instance ID in the format of `cdb-c1nl9rpv` or `cdbro-c1nl9rpv`. | 
| void | setInstanceRole(String InstanceRole)Set Instance type. | 
| void | setMaxDelayTime(Long MaxDelayTime)Set Delay threshold. | 
| 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 | setZoneId(String ZoneId)Set New AZ of the source node. | 
| 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 UpgradeDBInstanceRequest()
public UpgradeDBInstanceRequest(UpgradeDBInstanceRequest source)
public 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://intl.cloud.tencent.com/document/api/236/15872?from_cn_redirect=1) 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://intl.cloud.tencent.com/document/product/236/17229?from_cn_redirect=1) 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://intl.cloud.tencent.com/document/product/236/17229?from_cn_redirect=1) 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://intl.cloud.tencent.com/document/product/236/17229?from_cn_redirect=1) 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://intl.cloud.tencent.com/document/product/236/15864?from_cn_redirect=1) 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.public String getDeviceType()
public void setDeviceType(String DeviceType)
DeviceType - The resource isolation type after the instance is upgraded. Valid values: `UNIVERSAL` (general instance), `EXCLUSIVE` (dedicated instance), `BASIC` (basic instance). If this parameter is left empty, the resource isolation type will be the same as the original one.public Long getCpu()
public void setCpu(Long Cpu)
Cpu - The number of CPU cores after the instance is upgraded. If this parameter is left empty, the number of CPU cores will be automatically filled in according to the `Memory` value.public Long getFastUpgrade()
public void setFastUpgrade(Long FastUpgrade)
FastUpgrade - Whether to enable QuickChange. Valid values: `0` (no), `1` (yes). After QuickChange is enabled, the required resources will be checked. QuickChange is performed only when the required resources support the feature; otherwise, an error message will be returned.public Long getMaxDelayTime()
public void setMaxDelayTime(Long MaxDelayTime)
MaxDelayTime - Delay threshold. Value range: 1-10. Default value: `10`.public Long getCrossCluster()
public void setCrossCluster(Long CrossCluster)
CrossCluster - Whether to migrate the source node across AZs. Valid values: `0` (no), `1`(yes). Default value: `0`. If it is `1`, you can modify the source node AZ.public String getZoneId()
public void setZoneId(String ZoneId)
ZoneId - New AZ of the source node. This field is only valid when `CrossCluster` is `1`. Only migration across AZs in the same region is supported.Copyright © 2022. All rights reserved.