![JAR search and dependency download from the Maven repository](/logo.png)
com.tencentcloudapi.sqlserver.v20180328.models.UpgradeDBInstanceRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Show all versions of tencentcloud-sdk-java-intl-en Show documentation
Tencent Cloud API SDK for Java
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.sqlserver.v20180328.models;
import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class UpgradeDBInstanceRequest extends AbstractModel {
/**
* Instance ID in the format of mssql-j8kv137v
*/
@SerializedName("InstanceId")
@Expose
private String InstanceId;
/**
* Memory size after instance upgrade in GB, which cannot be smaller than the current instance memory size
*/
@SerializedName("Memory")
@Expose
private Long Memory;
/**
* Storage capacity after instance upgrade in GB, which cannot be smaller than the current instance storage capacity
*/
@SerializedName("Storage")
@Expose
private Long Storage;
/**
* Whether to automatically use vouchers. 0: no, 1: yes. Default value: 0
*/
@SerializedName("AutoVoucher")
@Expose
private Long AutoVoucher;
/**
* Voucher ID (currently, only one voucher can be used per order)
*/
@SerializedName("VoucherIds")
@Expose
private String [] VoucherIds;
/**
* The number of CUP cores after the instance is upgraded.
*/
@SerializedName("Cpu")
@Expose
private Long Cpu;
/**
* 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.
*/
@SerializedName("DBVersion")
@Expose
private String DBVersion;
/**
* 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.
*/
@SerializedName("HAType")
@Expose
private String HAType;
/**
* 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).
*/
@SerializedName("MultiZones")
@Expose
private String MultiZones;
/**
* The time when configuration adjustment task is performed. Valid values: `0` (execute immediately), `1` (execute during maintenance time). Default value: `1`.
*/
@SerializedName("WaitSwitch")
@Expose
private Long WaitSwitch;
/**
* Get Instance ID in the format of mssql-j8kv137v
* @return InstanceId Instance ID in the format of mssql-j8kv137v
*/
public String getInstanceId() {
return this.InstanceId;
}
/**
* Set Instance ID in the format of mssql-j8kv137v
* @param InstanceId Instance ID in the format of mssql-j8kv137v
*/
public void setInstanceId(String InstanceId) {
this.InstanceId = InstanceId;
}
/**
* Get Memory size after instance upgrade in GB, which cannot be smaller than the current instance memory size
* @return Memory Memory size after instance upgrade in GB, which cannot be smaller than the current instance memory size
*/
public Long getMemory() {
return this.Memory;
}
/**
* Set Memory size after instance upgrade in GB, which cannot be smaller than the current instance memory size
* @param Memory Memory size after instance upgrade in GB, which cannot be smaller than the current instance memory size
*/
public void setMemory(Long Memory) {
this.Memory = Memory;
}
/**
* Get Storage capacity after instance upgrade in GB, which cannot be smaller than the current instance storage capacity
* @return Storage Storage capacity after instance upgrade in GB, which cannot be smaller than the current instance storage capacity
*/
public Long getStorage() {
return this.Storage;
}
/**
* Set Storage capacity after instance upgrade in GB, which cannot be smaller than the current instance storage capacity
* @param Storage Storage capacity after instance upgrade in GB, which cannot be smaller than the current instance storage capacity
*/
public void setStorage(Long Storage) {
this.Storage = Storage;
}
/**
* Get Whether to automatically use vouchers. 0: no, 1: yes. Default value: 0
* @return AutoVoucher Whether to automatically use vouchers. 0: no, 1: yes. Default value: 0
*/
public Long getAutoVoucher() {
return this.AutoVoucher;
}
/**
* Set Whether to automatically use vouchers. 0: no, 1: yes. Default value: 0
* @param AutoVoucher Whether to automatically use vouchers. 0: no, 1: yes. Default value: 0
*/
public void setAutoVoucher(Long AutoVoucher) {
this.AutoVoucher = AutoVoucher;
}
/**
* Get Voucher ID (currently, only one voucher can be used per order)
* @return VoucherIds Voucher ID (currently, only one voucher can be used per order)
*/
public String [] getVoucherIds() {
return this.VoucherIds;
}
/**
* Set Voucher ID (currently, only one voucher can be used per order)
* @param VoucherIds Voucher ID (currently, only one voucher can be used per order)
*/
public void setVoucherIds(String [] VoucherIds) {
this.VoucherIds = VoucherIds;
}
/**
* Get The number of CUP cores after the instance is upgraded.
* @return Cpu The number of CUP cores after the instance is upgraded.
*/
public Long getCpu() {
return this.Cpu;
}
/**
* Set The number of CUP cores after the instance is upgraded.
* @param Cpu The number of CUP cores after the instance is upgraded.
*/
public void setCpu(Long Cpu) {
this.Cpu = Cpu;
}
/**
* Get 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.
* @return 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 getDBVersion() {
return this.DBVersion;
}
/**
* Set 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.
* @param 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 void setDBVersion(String DBVersion) {
this.DBVersion = DBVersion;
}
/**
* Get 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.
* @return 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 getHAType() {
return this.HAType;
}
/**
* Set 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.
* @param 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 void setHAType(String HAType) {
this.HAType = HAType;
}
/**
* Get 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).
* @return 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).
*/
public String getMultiZones() {
return this.MultiZones;
}
/**
* Set 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).
* @param 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).
*/
public void setMultiZones(String MultiZones) {
this.MultiZones = MultiZones;
}
/**
* Get The time when configuration adjustment task is performed. Valid values: `0` (execute immediately), `1` (execute during maintenance time). Default value: `1`.
* @return WaitSwitch The time when configuration adjustment task is performed. Valid values: `0` (execute immediately), `1` (execute during maintenance time). Default value: `1`.
*/
public Long getWaitSwitch() {
return this.WaitSwitch;
}
/**
* Set The time when configuration adjustment task is performed. Valid values: `0` (execute immediately), `1` (execute during maintenance time). Default value: `1`.
* @param WaitSwitch The time when configuration adjustment task is performed. Valid values: `0` (execute immediately), `1` (execute during maintenance time). Default value: `1`.
*/
public void setWaitSwitch(Long WaitSwitch) {
this.WaitSwitch = WaitSwitch;
}
public UpgradeDBInstanceRequest() {
}
/**
* 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.
*/
public UpgradeDBInstanceRequest(UpgradeDBInstanceRequest source) {
if (source.InstanceId != null) {
this.InstanceId = new String(source.InstanceId);
}
if (source.Memory != null) {
this.Memory = new Long(source.Memory);
}
if (source.Storage != null) {
this.Storage = new Long(source.Storage);
}
if (source.AutoVoucher != null) {
this.AutoVoucher = new Long(source.AutoVoucher);
}
if (source.VoucherIds != null) {
this.VoucherIds = new String[source.VoucherIds.length];
for (int i = 0; i < source.VoucherIds.length; i++) {
this.VoucherIds[i] = new String(source.VoucherIds[i]);
}
}
if (source.Cpu != null) {
this.Cpu = new Long(source.Cpu);
}
if (source.DBVersion != null) {
this.DBVersion = new String(source.DBVersion);
}
if (source.HAType != null) {
this.HAType = new String(source.HAType);
}
if (source.MultiZones != null) {
this.MultiZones = new String(source.MultiZones);
}
if (source.WaitSwitch != null) {
this.WaitSwitch = new Long(source.WaitSwitch);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "InstanceId", this.InstanceId);
this.setParamSimple(map, prefix + "Memory", this.Memory);
this.setParamSimple(map, prefix + "Storage", this.Storage);
this.setParamSimple(map, prefix + "AutoVoucher", this.AutoVoucher);
this.setParamArraySimple(map, prefix + "VoucherIds.", this.VoucherIds);
this.setParamSimple(map, prefix + "Cpu", this.Cpu);
this.setParamSimple(map, prefix + "DBVersion", this.DBVersion);
this.setParamSimple(map, prefix + "HAType", this.HAType);
this.setParamSimple(map, prefix + "MultiZones", this.MultiZones);
this.setParamSimple(map, prefix + "WaitSwitch", this.WaitSwitch);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy