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 |
---|---|
Long |
getAutoVoucher()
Get Whether to automatically use vouchers.
|
Long |
getCpu()
Get The number of CUP cores after the instance is upgraded.
|
String |
getDBVersion()
Get Upgrade the SQL Server version.
|
String |
getHAType()
Get Upgrade the high availability architecture from image-based disaster recovery to Always On cluster disaster recovery.
|
String |
getInstanceId()
Get Instance ID in the format of mssql-j8kv137v
|
Long |
getMemory()
Get Memory size after instance upgrade in GB, which cannot be smaller than the current instance memory size
|
String |
getMultiZones()
Get Change the instance deployment scheme.
|
Long |
getStorage()
Get Storage capacity after instance upgrade in GB, which cannot be smaller than the current instance storage capacity
|
String[] |
getVoucherIds()
Get Voucher ID (currently, only one voucher can be used per order)
|
void |
setAutoVoucher(Long AutoVoucher)
Set Whether to automatically use vouchers.
|
void |
setCpu(Long Cpu)
Set The number of CUP cores after the instance is upgraded.
|
void |
setDBVersion(String DBVersion)
Set Upgrade the SQL Server version.
|
void |
setHAType(String HAType)
Set Upgrade the high availability architecture from image-based disaster recovery to Always On cluster disaster recovery.
|
void |
setInstanceId(String InstanceId)
Set Instance ID in the format of mssql-j8kv137v
|
void |
setMemory(Long Memory)
Set Memory size after instance upgrade in GB, which cannot be smaller than the current instance memory size
|
void |
setMultiZones(String MultiZones)
Set Change the instance deployment scheme.
|
void |
setStorage(Long Storage)
Set Storage capacity after instance upgrade in GB, which cannot be smaller than the current instance storage capacity
|
void |
setVoucherIds(String[] VoucherIds)
Set Voucher ID (currently, only one voucher can be used per order)
|
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 UpgradeDBInstanceRequest()
public UpgradeDBInstanceRequest(UpgradeDBInstanceRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID in the format of mssql-j8kv137vpublic Long getMemory()
public void setMemory(Long Memory)
Memory
- Memory size after instance upgrade in GB, which cannot be smaller than the current instance memory sizepublic Long getStorage()
public void setStorage(Long Storage)
Storage
- Storage capacity after instance upgrade in GB, which cannot be smaller than the current instance storage capacitypublic Long getAutoVoucher()
public void setAutoVoucher(Long AutoVoucher)
AutoVoucher
- Whether to automatically use vouchers. 0: no, 1: yes. Default value: 0public String[] getVoucherIds()
public void setVoucherIds(String[] VoucherIds)
VoucherIds
- Voucher ID (currently, only one voucher can be used per order)public Long getCpu()
public void setCpu(Long Cpu)
Cpu
- The number of CUP cores after the instance is upgraded.public String getDBVersion()
public void setDBVersion(String DBVersion)
DBVersion
- Upgrade the SQL Server version. Supported versions include SQL Server 2008 Enterprise (`2008R2`), SQL Server 2012 Enterprise (`2012SP3`), etc. As the purchasable versions are region-specific, you can use the `DescribeProductConfig` API to query the information of purchasable versions in each region. Downgrading is unsupported. If this parameter is left empty, the SQL Server version will not be changed.public String getHAType()
public void setHAType(String HAType)
HAType
- Upgrade the high availability architecture from image-based disaster recovery to Always On cluster disaster recovery. This parameter is valid only for instances which support Always On high availability and run SQL Server 2017 or later. Neither downgrading to image-based disaster recovery nor upgrading from cluster disaster recovery to Always On disaster recovery is supported. If this parameter is left empty, the high availability architecture will not be changed.public String getMultiZones()
public void setMultiZones(String MultiZones)
MultiZones
- Change the instance deployment scheme. Valid values: `SameZones` (change to single-AZ deployment, which does not support cross-AZ disaster recovery), `MultiZones` (change to multi-AZ deployment, which supports cross-AZ disaster recovery).Copyright © 2021. All rights reserved.