All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aliyun.rds20140815.models.RecoveryDBInstanceRequest Maven / Gradle / Ivy

There is a newer version: 6.3.2
Show newest version
// This file is auto-generated, don't edit it. Thanks.
package com.aliyun.rds20140815.models;

import com.aliyun.tea.*;

public class RecoveryDBInstanceRequest extends TeaModel {
    /**
     * 

The backup set ID. You can call the DescribeBackups operation to query the backup set ID.

*

If you specify this parameter, you do not need to specify DBInstanceId.

*
*

You must specify at least one of the BackupId or RestoreTime parameters.

*
* * example: *

29304****

*/ @NameInMap("BackupId") public String backupId; /** *

The instance type of the new instance. For more information, see Instance types.

* * example: *

rds.mysql.s2.large

*/ @NameInMap("DBInstanceClass") public String DBInstanceClass; /** *

The ID of the original instance.

*
*
    *
  • If you specify BackupId, you do not need to specify this parameter.
  • *
  • If you specify RestoreTime, you must also specify this parameter.
  • *
*
* * example: *

rm-xxxxxxxx1

*/ @NameInMap("DBInstanceId") public String DBInstanceId; /** *

The storage capacity of the new instance. Unit: GB. For more information, see Instance types.

*
*

You must set this parameter to a value that is greater than or equal to the storage capacity of the original instance.

*
* * example: *

5

*/ @NameInMap("DBInstanceStorage") public Integer DBInstanceStorage; /** *

The storage type of the new instance. Valid values:

*
    *
  • local_ssd/ephemeral_ssd: local SSD
  • *
  • cloud_ssd: standard SSD.
  • *
  • cloud_essd: enhanced SSD (ESSD)
  • *
* * example: *

local_ssd

*/ @NameInMap("DBInstanceStorageType") public String DBInstanceStorageType; /** *

The name of the database. When you restore data to a new instance, the format of the database name is Original database name 1,New database name 2.

*
*

For more information about how to restore data to an existing instance, see CopyDatabaseBetweenInstances.

*
*

This parameter is required.

* * example: *

Restore databases to a new instance: test1,test2. Restore databases to an existing instance: {"test1":"newtest1","test2":"newtest2"}

*/ @NameInMap("DbNames") public String dbNames; /** *

The network type of the new instance. Valid values:

*
    *
  • Classic
  • *
  • VPC
  • *
*

By default, the new instance uses the same network type as the original instance.

* * example: *

VPC

*/ @NameInMap("InstanceNetworkType") public String instanceNetworkType; /** *

The billing method of the new instance. Valid values:

*
    *
  • Postpaid: pay-as-you-go.
  • *
  • Prepaid: subscription.
  • *
* * example: *

Postpaid

*/ @NameInMap("PayType") public String payType; /** *

The unit that is used to calculate the billing cycle of the new instance. This parameter takes effect only when you select the subscription billing method for the new instance. Valid values:

*
    *
  • Year
  • *
  • Month
  • *
*
*

This parameter must be specified when PayType is set to Prepaid.

*
* * example: *

Month

*/ @NameInMap("Period") public String period; /** *

The internal IP address of the new instance. The internal IP address must be within the CIDR block that is supported by the specified vSwitch. The system automatically assigns an internal IP address based on the values of the VPCId and VSwitchId parameters.

* * example: *

172.XXX.XXX.69

*/ @NameInMap("PrivateIpAddress") public String privateIpAddress; @NameInMap("ResourceOwnerId") public Long resourceOwnerId; /** *

The point in time to which you want to restore data. The point in time must fall within the specified log backup retention period. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

*

If you specify this parameter, you must also specify DBInstanceId.

*
*

You must specify at least one of BackupId and RestoreTime.

*
* * example: *

2011-06-11T16:00:00Z

*/ @NameInMap("RestoreTime") public String restoreTime; /** *

The ID of the destination instance.

* * example: *

rm-uf6wjk5xxxxxxx

*/ @NameInMap("TargetDBInstanceId") public String targetDBInstanceId; /** *

The subscription duration of the instance. Valid values:

*
    *
  • Valid values when Period is set to Year: 1 to 3.****
  • *
  • Valid values when Period is set to Month: 1 to 9.****
  • *
*
*

This parameter must be specified when PayType is set to Prepaid.

*
* * example: *

1

*/ @NameInMap("UsedTime") public String usedTime; /** *

The VPC ID of the new instance.

* * example: *

vpc-xxxxxxxxxxx

*/ @NameInMap("VPCId") public String VPCId; /** *

The vSwitch ID of the new instance. If you specify more than one vSwitch ID, you must separate the IDs with commas (,).

* * example: *

vsw-xxxxxxxxxxx

*/ @NameInMap("VSwitchId") public String vSwitchId; public static RecoveryDBInstanceRequest build(java.util.Map map) throws Exception { RecoveryDBInstanceRequest self = new RecoveryDBInstanceRequest(); return TeaModel.build(map, self); } public RecoveryDBInstanceRequest setBackupId(String backupId) { this.backupId = backupId; return this; } public String getBackupId() { return this.backupId; } public RecoveryDBInstanceRequest setDBInstanceClass(String DBInstanceClass) { this.DBInstanceClass = DBInstanceClass; return this; } public String getDBInstanceClass() { return this.DBInstanceClass; } public RecoveryDBInstanceRequest setDBInstanceId(String DBInstanceId) { this.DBInstanceId = DBInstanceId; return this; } public String getDBInstanceId() { return this.DBInstanceId; } public RecoveryDBInstanceRequest setDBInstanceStorage(Integer DBInstanceStorage) { this.DBInstanceStorage = DBInstanceStorage; return this; } public Integer getDBInstanceStorage() { return this.DBInstanceStorage; } public RecoveryDBInstanceRequest setDBInstanceStorageType(String DBInstanceStorageType) { this.DBInstanceStorageType = DBInstanceStorageType; return this; } public String getDBInstanceStorageType() { return this.DBInstanceStorageType; } public RecoveryDBInstanceRequest setDbNames(String dbNames) { this.dbNames = dbNames; return this; } public String getDbNames() { return this.dbNames; } public RecoveryDBInstanceRequest setInstanceNetworkType(String instanceNetworkType) { this.instanceNetworkType = instanceNetworkType; return this; } public String getInstanceNetworkType() { return this.instanceNetworkType; } public RecoveryDBInstanceRequest setPayType(String payType) { this.payType = payType; return this; } public String getPayType() { return this.payType; } public RecoveryDBInstanceRequest setPeriod(String period) { this.period = period; return this; } public String getPeriod() { return this.period; } public RecoveryDBInstanceRequest setPrivateIpAddress(String privateIpAddress) { this.privateIpAddress = privateIpAddress; return this; } public String getPrivateIpAddress() { return this.privateIpAddress; } public RecoveryDBInstanceRequest setResourceOwnerId(Long resourceOwnerId) { this.resourceOwnerId = resourceOwnerId; return this; } public Long getResourceOwnerId() { return this.resourceOwnerId; } public RecoveryDBInstanceRequest setRestoreTime(String restoreTime) { this.restoreTime = restoreTime; return this; } public String getRestoreTime() { return this.restoreTime; } public RecoveryDBInstanceRequest setTargetDBInstanceId(String targetDBInstanceId) { this.targetDBInstanceId = targetDBInstanceId; return this; } public String getTargetDBInstanceId() { return this.targetDBInstanceId; } public RecoveryDBInstanceRequest setUsedTime(String usedTime) { this.usedTime = usedTime; return this; } public String getUsedTime() { return this.usedTime; } public RecoveryDBInstanceRequest setVPCId(String VPCId) { this.VPCId = VPCId; return this; } public String getVPCId() { return this.VPCId; } public RecoveryDBInstanceRequest setVSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } public String getVSwitchId() { return this.vSwitchId; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy