com.aliyun.rds20140815.models.MigrateToOtherZoneRequest Maven / Gradle / Ivy
Show all versions of rds20140815 Show documentation
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.rds20140815.models;
import com.aliyun.tea.*;
public class MigrateToOtherZoneRequest extends TeaModel {
/**
* The RDS edition of the instance. Valid values:
*
* - Basic: RDS Basic Edition
* - HighAvailability: RDS High-availability Edition
* - AlwaysOn: SQL Server on RDS Cluster Edition
* - cluster: MySQL on RDS Cluster Edition
* - Finance: RDS Enterprise Edition
*
*
* example:
* HighAvailability
*/
@NameInMap("Category")
public String category;
/**
* The new instance type of the instance. You can change the instance type of the instance. You cannot change the storage type of the instance. If you set IsModifySpec to true, you must specify at least one of DBInstanceClass and DBInstanceStorage.
* For more information about instance types, see Primary ApsaraDB RDS for MySQL instance types.
*
* example:
* mysql.x4.xlarge.2
*/
@NameInMap("DBInstanceClass")
public String DBInstanceClass;
/**
* The instance ID. You can call the DescribeDBInstances operation to query the instance ID.
* This parameter is required.
*
* example:
* rm-uf6wjk5xxxxxxxxxx
*/
@NameInMap("DBInstanceId")
public String DBInstanceId;
/**
* The new storage capacity of the instance. If you set IsModifySpec to true, you must specify at least one of DBInstanceStorage and DBInstanceClass.
* Unit: GB. The available storage capacity range varies based on the instance type of the instance. For more information, see Primary ApsaraDB RDS for MySQL instance types.
*
* example:
* 500
*/
@NameInMap("DBInstanceStorage")
public Long DBInstanceStorage;
/**
* The time when you want the change to take effect. Valid values:
*
* - Immediately (default): The change immediately takes effect.
* - MaintainTime: The change takes effect during the maintenance window. For more information, see ModifyDBInstanceMaintainTime.
* - ScheduleTime: The change takes effect at the point in time that you specify.
*
*
* If you set this parameter to ScheduleTime, you must specify the SwitchTime parameter.
*
*
* example:
* Immediate
*/
@NameInMap("EffectiveTime")
public String effectiveTime;
/**
* A reserved parameter.
*
* example:
* 0
*/
@NameInMap("IoAccelerationEnabled")
public String ioAccelerationEnabled;
/**
* Specifies whether to change the specifications of the instance during the cross-zone migration. Valid values:
*
* - true: You want to change the specifications of the instance during the cross-zone migration. If you set this parameter to true, you must specify at least one of DBInstanceClass and DBInstanceStorage.
* - false (default): You do not want to change the specifications of the instance during the cross-zone migration.
*
*
* This parameter applies only to instances that run MySQL.
*
*
* example:
* true
*/
@NameInMap("IsModifySpec")
public String isModifySpec;
@NameInMap("OwnerAccount")
public String ownerAccount;
@NameInMap("OwnerId")
public Long ownerId;
@NameInMap("ResourceOwnerAccount")
public String resourceOwnerAccount;
@NameInMap("ResourceOwnerId")
public Long resourceOwnerId;
/**
* The migration time. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
*
* This parameter is used with EffectiveTime. You must specify this parameter only when EffectiveTime is set to ScheduleTime.
*
*
* example:
* 2021-12-14T15:15:15Z
*/
@NameInMap("SwitchTime")
public String switchTime;
/**
* The ID of the virtual private cloud (VPC). Do not change the VPC of the instance when you migrate the instance across zones.
*
* - This parameter must be specified when the instance resides in a VPC.
* - If the instance runs SQL Server, you can change the VPC of the instance.
*
*
* example:
* vpc-xxxxxxx
*/
@NameInMap("VPCId")
public String VPCId;
/**
* The vSwitch ID.
*
* - This parameter must be specified when the instance resides in a VPC. You can call the DescribeVSwitches operation to query existing vSwitches.
* - If the instance runs PostgreSQL or SQL Server and a secondary zone is specified for the instance, you can specify multiple vSwitch IDs, each of which corresponds to a zone. Separate the vSwitch IDs with commas (,).
*
*
* example:
* vsw-uf6adz52c2pxxxxxxx
*/
@NameInMap("VSwitchId")
public String vSwitchId;
/**
* The ID of the destination zone. You can call the DescribeRegions operation to query the most recent region list.
* This parameter is required.
*
* example:
* cn-hangzhou-b
*/
@NameInMap("ZoneId")
public String zoneId;
/**
* The secondary zone 1 of the instance.
*
* This parameter must be configured if the instance runs RDS editions other than RDS Basic Edition.
*
*
* example:
* cn-hangzhou-c
*/
@NameInMap("ZoneIdSlave1")
public String zoneIdSlave1;
/**
* The secondary zone 2 of the instance.
*
* You can specify this parameter only for instances that run RDS Enterprise Edition.
*
*
* example:
* cn-hangzhou-d
*/
@NameInMap("ZoneIdSlave2")
public String zoneIdSlave2;
public static MigrateToOtherZoneRequest build(java.util.Map map) throws Exception {
MigrateToOtherZoneRequest self = new MigrateToOtherZoneRequest();
return TeaModel.build(map, self);
}
public MigrateToOtherZoneRequest setCategory(String category) {
this.category = category;
return this;
}
public String getCategory() {
return this.category;
}
public MigrateToOtherZoneRequest setDBInstanceClass(String DBInstanceClass) {
this.DBInstanceClass = DBInstanceClass;
return this;
}
public String getDBInstanceClass() {
return this.DBInstanceClass;
}
public MigrateToOtherZoneRequest setDBInstanceId(String DBInstanceId) {
this.DBInstanceId = DBInstanceId;
return this;
}
public String getDBInstanceId() {
return this.DBInstanceId;
}
public MigrateToOtherZoneRequest setDBInstanceStorage(Long DBInstanceStorage) {
this.DBInstanceStorage = DBInstanceStorage;
return this;
}
public Long getDBInstanceStorage() {
return this.DBInstanceStorage;
}
public MigrateToOtherZoneRequest setEffectiveTime(String effectiveTime) {
this.effectiveTime = effectiveTime;
return this;
}
public String getEffectiveTime() {
return this.effectiveTime;
}
public MigrateToOtherZoneRequest setIoAccelerationEnabled(String ioAccelerationEnabled) {
this.ioAccelerationEnabled = ioAccelerationEnabled;
return this;
}
public String getIoAccelerationEnabled() {
return this.ioAccelerationEnabled;
}
public MigrateToOtherZoneRequest setIsModifySpec(String isModifySpec) {
this.isModifySpec = isModifySpec;
return this;
}
public String getIsModifySpec() {
return this.isModifySpec;
}
public MigrateToOtherZoneRequest setOwnerAccount(String ownerAccount) {
this.ownerAccount = ownerAccount;
return this;
}
public String getOwnerAccount() {
return this.ownerAccount;
}
public MigrateToOtherZoneRequest setOwnerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
public Long getOwnerId() {
return this.ownerId;
}
public MigrateToOtherZoneRequest setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public MigrateToOtherZoneRequest setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
return this;
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public MigrateToOtherZoneRequest setSwitchTime(String switchTime) {
this.switchTime = switchTime;
return this;
}
public String getSwitchTime() {
return this.switchTime;
}
public MigrateToOtherZoneRequest setVPCId(String VPCId) {
this.VPCId = VPCId;
return this;
}
public String getVPCId() {
return this.VPCId;
}
public MigrateToOtherZoneRequest setVSwitchId(String vSwitchId) {
this.vSwitchId = vSwitchId;
return this;
}
public String getVSwitchId() {
return this.vSwitchId;
}
public MigrateToOtherZoneRequest setZoneId(String zoneId) {
this.zoneId = zoneId;
return this;
}
public String getZoneId() {
return this.zoneId;
}
public MigrateToOtherZoneRequest setZoneIdSlave1(String zoneIdSlave1) {
this.zoneIdSlave1 = zoneIdSlave1;
return this;
}
public String getZoneIdSlave1() {
return this.zoneIdSlave1;
}
public MigrateToOtherZoneRequest setZoneIdSlave2(String zoneIdSlave2) {
this.zoneIdSlave2 = zoneIdSlave2;
return this;
}
public String getZoneIdSlave2() {
return this.zoneIdSlave2;
}
}