com.aliyun.rds20140815.models.CheckCreateDdrDBInstanceRequest 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 CheckCreateDdrDBInstanceRequest extends TeaModel {
/**
* The ID of the backup set that is used for the restoration. You can call the DescribeCrossRegionBackups operation to query the backup set ID.
*
* This parameter must be specified when the RestoreType parameter is set to 0.
*
*
* example:
* 14358
*/
@NameInMap("BackupSetId")
public String backupSetId;
/**
* The instance type of the destination instance. For more information, see Primary ApsaraDB RDS instance types.
* This parameter is required.
*
* example:
* rds.mysql.s1.small
*/
@NameInMap("DBInstanceClass")
public String DBInstanceClass;
/**
* The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB. You can increase the storage capacity in increments of 5 GB. For more information, see Primary instance types.
* This parameter is required.
*
* example:
* 20
*/
@NameInMap("DBInstanceStorage")
public Integer DBInstanceStorage;
/**
* The database engine of the destination instance. Valid values:
*
* - MySQL
* - SQLServer
* - PostgreSQL
*
* This parameter is required.
*
* example:
* MySQL
*/
@NameInMap("Engine")
public String engine;
/**
* The major engine version of the destination instance. The value of this parameter varies based on the value of Engine.
*
* - Valid values when Engine is set to MySQL: 5.5, 5.6, 5.7, and 8.0
* - Valid values when Engine is set to SQLServer: 2008r2, 08r2_ent_ha, 2012, 2012_ent_ha, 2012_std_ha, 2012_web, 2014_std_ha, 2016_ent_ha, 2016_std_ha, 2016_web, 2017_std_ha, 2017_ent, 2019_std_ha, and 2019_ent
* - PostgreSQL: 10.0, 11.0, 12.0, 13.0, 14.0, and 15.0
*
* This parameter is required.
*
* example:
* 5.6
*/
@NameInMap("EngineVersion")
public String engineVersion;
@NameInMap("OwnerId")
public Long ownerId;
/**
* The region ID of the destination instance. You can call the DescribeRegions operation to query the most recent region list.
* This parameter is required.
*
* example:
* cn-hangzhou
*/
@NameInMap("RegionId")
public String regionId;
/**
* The resource group ID. You can call the DescribeDBInstanceAttribute to query the resource group ID.
*
* example:
* rg-acfmy****
*/
@NameInMap("ResourceGroupId")
public String resourceGroupId;
@NameInMap("ResourceOwnerAccount")
public String resourceOwnerAccount;
@NameInMap("ResourceOwnerId")
public Long resourceOwnerId;
/**
* The point in time to which you want to restore data. The point in time that you specify must be earlier than the current time. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.
*
* If you set RestoreType to 1, you must also specify this parameter.
*
*
* example:
* 2019-05-30T03:29:10Z
*/
@NameInMap("RestoreTime")
public String restoreTime;
/**
* The method that is used to restore data. Valid values:
*
* - 0: restores data from a backup set. If you set this parameter to 0, you must also specify the BackupSetId parameter.
* - 1: restores data to a point in time. If you set this parameter to 1, you must also specify the RestoreTime, SourceRegion, and SourceDBInstanceName parameters.
*
* Default value: 0.
* This parameter is required.
*
* example:
* 0
*/
@NameInMap("RestoreType")
public String restoreType;
/**
* The ID of the source instance if you want to restore data to a point in time.
*
* This parameter must be specified when the RestoreType parameter is set to 1.
*
*
* example:
* rm-uf6wjk5xxxxxxx
*/
@NameInMap("SourceDBInstanceName")
public String sourceDBInstanceName;
/**
* The region ID of the source instance if you want to restore data to a point in time.
*
* If you set RestoreType to 1, you must also specify this parameter.
*
*
* example:
* cn-hangzhou
*/
@NameInMap("SourceRegion")
public String sourceRegion;
public static CheckCreateDdrDBInstanceRequest build(java.util.Map map) throws Exception {
CheckCreateDdrDBInstanceRequest self = new CheckCreateDdrDBInstanceRequest();
return TeaModel.build(map, self);
}
public CheckCreateDdrDBInstanceRequest setBackupSetId(String backupSetId) {
this.backupSetId = backupSetId;
return this;
}
public String getBackupSetId() {
return this.backupSetId;
}
public CheckCreateDdrDBInstanceRequest setDBInstanceClass(String DBInstanceClass) {
this.DBInstanceClass = DBInstanceClass;
return this;
}
public String getDBInstanceClass() {
return this.DBInstanceClass;
}
public CheckCreateDdrDBInstanceRequest setDBInstanceStorage(Integer DBInstanceStorage) {
this.DBInstanceStorage = DBInstanceStorage;
return this;
}
public Integer getDBInstanceStorage() {
return this.DBInstanceStorage;
}
public CheckCreateDdrDBInstanceRequest setEngine(String engine) {
this.engine = engine;
return this;
}
public String getEngine() {
return this.engine;
}
public CheckCreateDdrDBInstanceRequest setEngineVersion(String engineVersion) {
this.engineVersion = engineVersion;
return this;
}
public String getEngineVersion() {
return this.engineVersion;
}
public CheckCreateDdrDBInstanceRequest setOwnerId(Long ownerId) {
this.ownerId = ownerId;
return this;
}
public Long getOwnerId() {
return this.ownerId;
}
public CheckCreateDdrDBInstanceRequest setRegionId(String regionId) {
this.regionId = regionId;
return this;
}
public String getRegionId() {
return this.regionId;
}
public CheckCreateDdrDBInstanceRequest setResourceGroupId(String resourceGroupId) {
this.resourceGroupId = resourceGroupId;
return this;
}
public String getResourceGroupId() {
return this.resourceGroupId;
}
public CheckCreateDdrDBInstanceRequest setResourceOwnerAccount(String resourceOwnerAccount) {
this.resourceOwnerAccount = resourceOwnerAccount;
return this;
}
public String getResourceOwnerAccount() {
return this.resourceOwnerAccount;
}
public CheckCreateDdrDBInstanceRequest setResourceOwnerId(Long resourceOwnerId) {
this.resourceOwnerId = resourceOwnerId;
return this;
}
public Long getResourceOwnerId() {
return this.resourceOwnerId;
}
public CheckCreateDdrDBInstanceRequest setRestoreTime(String restoreTime) {
this.restoreTime = restoreTime;
return this;
}
public String getRestoreTime() {
return this.restoreTime;
}
public CheckCreateDdrDBInstanceRequest setRestoreType(String restoreType) {
this.restoreType = restoreType;
return this;
}
public String getRestoreType() {
return this.restoreType;
}
public CheckCreateDdrDBInstanceRequest setSourceDBInstanceName(String sourceDBInstanceName) {
this.sourceDBInstanceName = sourceDBInstanceName;
return this;
}
public String getSourceDBInstanceName() {
return this.sourceDBInstanceName;
}
public CheckCreateDdrDBInstanceRequest setSourceRegion(String sourceRegion) {
this.sourceRegion = sourceRegion;
return this;
}
public String getSourceRegion() {
return this.sourceRegion;
}
}