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

com.aliyun.rds20140815.models.CreateDdrInstanceRequest 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 CreateDdrInstanceRequest extends TeaModel {
    /**
     * 

The backup set ID that you want to use for the restoration. You can call the DescribeCrossRegionBackups operation to query backup set ID.

*
*

This parameter is required when you set the RestoreType parameter to BackupSet.

*
* * example: *

14***

*/ @NameInMap("BackupSetId") public String backupSetId; /** *

The client token that is used to ensure the idempotence of the request. You can use the client to generate the token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters and cannot exceed 64 characters in length.

* * example: *

ETnLKlblzczshOTUbOCzxxxxxxxxxx

*/ @NameInMap("ClientToken") public String clientToken; /** *

The connection mode of the destination instance. Valid values:

*
    *
  • Standard: standard mode
  • *
  • Safe: database proxy mode
  • *
*

Default value: Standard.

* * example: *

Standard

*/ @NameInMap("ConnectionMode") public String connectionMode; /** *

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 instance name. The name must be 2 to 256 characters in length. The value can contain letters, digits, underscores (_), and hyphens (-), and must start with a letter.

*
*

The value cannot start with http:// or https://.

*
* * example: *

Test database

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

The network connection type of the destination instance. Valid values:

*
    *
  • Internet
  • *
  • Intranet
  • *
*

This parameter is required.

* * example: *

Intranet

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

The storage capacity of the destination instance. Valid values: 5 to 2000. Unit: GB. You can increase the storage capacity at a step size of 5 GB. For more information, see Primary instance types.

*

This parameter is required.

* * example: *

20

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

The storage type of the destination instance. Only the local SSD storage type is supported. Default value: local_ssd.

* * example: *

local_ssd

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

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
  • *
  • Valid values when Engine is set to PostgreSQL: 9.4, 10.0, 11.0, 12.0, and 13.0
  • *
*

This parameter is required.

* * example: *

5.6

*/ @NameInMap("EngineVersion") public String engineVersion; /** *

The network type of the instance. Valid values:

*
    *
  • VPC
  • *
  • Classic
  • *
*

Default value: Classic.

*
*

If you set this parameter to VPC, you must also specify VpcId and VSwitchId.

*
* * example: *

Classic

*/ @NameInMap("InstanceNetworkType") public String instanceNetworkType; @NameInMap("OwnerAccount") public String ownerAccount; @NameInMap("OwnerId") public Long ownerId; /** *

The billing method of the instance. Valid values:

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

This parameter is required.

* * example: *

Prepaid

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

The unit that is used to measure the subscription duration of the destination instance. Valid values:

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

If you set PayType to Prepaid, you must specify UsedTime.

*
* * example: *

Year

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

The private IP address of the destination instance. The private 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; /** *

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.

* * example: *

rg-acfmyxxxxxxxxxx

*/ @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. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

*
*

If RestoreType is set to BackupTime, you must specify this parameter.

*
* * example: *

2019-05-30T03:29:10Z

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

The restoration method that you want to use. Valid values:

*
    *
  • BackupSet: restores data from a backup set. If you use this value, you must also specify BackupSetId.
  • *
  • BackupTime: restores data to a point in time. If you use this value, you must also specify RestoreTime, SourceRegion, and SourceDBInstanceName.
  • *
*

This parameter is required.

* * example: *

BackupSet

*/ @NameInMap("RestoreType") public String restoreType; /** *

The IP address whitelist of the destination instance. If you want to add more than one entry to the IP address whitelist, separate the entries with commas (,). Each entry must be unique. You can add a maximum of 1,000 entries. For more information, see Configure an IP address whitelist for an ApsaraDB RDS for MySQL instance. The entries in the IP address whitelist must be in one of the following formats:

*
    *
  • IP address. Example: 10.23.12.24.
  • *
  • CIDR block. Example: 10.23.12.24/24. In this example, 24 indicates that the prefix of the CIDR block is 24 bits in length. You can replace 24 with a value that ranges from 1 to 32.
  • *
*

This parameter is required.

* * example: *

127.0.0.1

*/ @NameInMap("SecurityIPList") public String securityIPList; /** *

The source instance ID, which is used if you want to restore data to a point in time.

*
*

This parameter is required when you set the RestoreType parameter to BackupTime.

*
* * 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 BackupTime, you must specify this parameter.

*
* * example: *

cn-hangzhou

*/ @NameInMap("SourceRegion") public String sourceRegion; /** *

The character set of the destination instance. Valid values:

*
    *
  • utf8
  • *
  • gbk
  • *
  • latin1
  • *
  • utf8mb4
  • *
* * example: *

uft8

*/ @NameInMap("SystemDBCharset") public String systemDBCharset; /** *

The subscription duration of the instance.

*
    *
  • If you set Period to Year, the value of UsedTime ranges from 1 to 3.
  • *
  • If you set Period to Month, the value of UsedTime ranges from 1 to 9.
  • *
*
*

If you set PayType to Prepaid, you must specify UsedTime.

*
* * example: *

2

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

The VPC ID of the destination instance. This parameter is available only when you set the InstanceNetworkType parameter to VPC.

*
*

If you specify this parameter, you must also specify the ZoneId parameter.

*
* * example: *

vpc-xxxxxxxxxxxx

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

The vSwitch ID of the destination instance. If you specify more than one vSwitch, separate the IDs of the vSwitches with commas (,). This parameter is available only when you set the InstanceNetworkType parameter to VPC.

*
*

If you specify this parameter, you must also specify the ZoneId parameter.

*
* * example: *

vsw-xxxxxxxxxxx

*/ @NameInMap("VSwitchId") public String vSwitchId; /** *

The zone ID of the destination instance. If the destination instance is deployed in multiple zones, separate the IDs of the zones with colons (:).

*
*

If you specify a virtual private cloud (VPC) and a vSwitch, you must specify this parameter to identify the zone for the vSwitch.

*
* * example: *

cn-hangzhou-b

*/ @NameInMap("ZoneId") public String zoneId; public static CreateDdrInstanceRequest build(java.util.Map map) throws Exception { CreateDdrInstanceRequest self = new CreateDdrInstanceRequest(); return TeaModel.build(map, self); } public CreateDdrInstanceRequest setBackupSetId(String backupSetId) { this.backupSetId = backupSetId; return this; } public String getBackupSetId() { return this.backupSetId; } public CreateDdrInstanceRequest setClientToken(String clientToken) { this.clientToken = clientToken; return this; } public String getClientToken() { return this.clientToken; } public CreateDdrInstanceRequest setConnectionMode(String connectionMode) { this.connectionMode = connectionMode; return this; } public String getConnectionMode() { return this.connectionMode; } public CreateDdrInstanceRequest setDBInstanceClass(String DBInstanceClass) { this.DBInstanceClass = DBInstanceClass; return this; } public String getDBInstanceClass() { return this.DBInstanceClass; } public CreateDdrInstanceRequest setDBInstanceDescription(String DBInstanceDescription) { this.DBInstanceDescription = DBInstanceDescription; return this; } public String getDBInstanceDescription() { return this.DBInstanceDescription; } public CreateDdrInstanceRequest setDBInstanceNetType(String DBInstanceNetType) { this.DBInstanceNetType = DBInstanceNetType; return this; } public String getDBInstanceNetType() { return this.DBInstanceNetType; } public CreateDdrInstanceRequest setDBInstanceStorage(Integer DBInstanceStorage) { this.DBInstanceStorage = DBInstanceStorage; return this; } public Integer getDBInstanceStorage() { return this.DBInstanceStorage; } public CreateDdrInstanceRequest setDBInstanceStorageType(String DBInstanceStorageType) { this.DBInstanceStorageType = DBInstanceStorageType; return this; } public String getDBInstanceStorageType() { return this.DBInstanceStorageType; } public CreateDdrInstanceRequest setEngine(String engine) { this.engine = engine; return this; } public String getEngine() { return this.engine; } public CreateDdrInstanceRequest setEngineVersion(String engineVersion) { this.engineVersion = engineVersion; return this; } public String getEngineVersion() { return this.engineVersion; } public CreateDdrInstanceRequest setInstanceNetworkType(String instanceNetworkType) { this.instanceNetworkType = instanceNetworkType; return this; } public String getInstanceNetworkType() { return this.instanceNetworkType; } public CreateDdrInstanceRequest setOwnerAccount(String ownerAccount) { this.ownerAccount = ownerAccount; return this; } public String getOwnerAccount() { return this.ownerAccount; } public CreateDdrInstanceRequest setOwnerId(Long ownerId) { this.ownerId = ownerId; return this; } public Long getOwnerId() { return this.ownerId; } public CreateDdrInstanceRequest setPayType(String payType) { this.payType = payType; return this; } public String getPayType() { return this.payType; } public CreateDdrInstanceRequest setPeriod(String period) { this.period = period; return this; } public String getPeriod() { return this.period; } public CreateDdrInstanceRequest setPrivateIpAddress(String privateIpAddress) { this.privateIpAddress = privateIpAddress; return this; } public String getPrivateIpAddress() { return this.privateIpAddress; } public CreateDdrInstanceRequest setRegionId(String regionId) { this.regionId = regionId; return this; } public String getRegionId() { return this.regionId; } public CreateDdrInstanceRequest setResourceGroupId(String resourceGroupId) { this.resourceGroupId = resourceGroupId; return this; } public String getResourceGroupId() { return this.resourceGroupId; } public CreateDdrInstanceRequest setResourceOwnerAccount(String resourceOwnerAccount) { this.resourceOwnerAccount = resourceOwnerAccount; return this; } public String getResourceOwnerAccount() { return this.resourceOwnerAccount; } public CreateDdrInstanceRequest setResourceOwnerId(Long resourceOwnerId) { this.resourceOwnerId = resourceOwnerId; return this; } public Long getResourceOwnerId() { return this.resourceOwnerId; } public CreateDdrInstanceRequest setRestoreTime(String restoreTime) { this.restoreTime = restoreTime; return this; } public String getRestoreTime() { return this.restoreTime; } public CreateDdrInstanceRequest setRestoreType(String restoreType) { this.restoreType = restoreType; return this; } public String getRestoreType() { return this.restoreType; } public CreateDdrInstanceRequest setSecurityIPList(String securityIPList) { this.securityIPList = securityIPList; return this; } public String getSecurityIPList() { return this.securityIPList; } public CreateDdrInstanceRequest setSourceDBInstanceName(String sourceDBInstanceName) { this.sourceDBInstanceName = sourceDBInstanceName; return this; } public String getSourceDBInstanceName() { return this.sourceDBInstanceName; } public CreateDdrInstanceRequest setSourceRegion(String sourceRegion) { this.sourceRegion = sourceRegion; return this; } public String getSourceRegion() { return this.sourceRegion; } public CreateDdrInstanceRequest setSystemDBCharset(String systemDBCharset) { this.systemDBCharset = systemDBCharset; return this; } public String getSystemDBCharset() { return this.systemDBCharset; } public CreateDdrInstanceRequest setUsedTime(String usedTime) { this.usedTime = usedTime; return this; } public String getUsedTime() { return this.usedTime; } public CreateDdrInstanceRequest setVPCId(String VPCId) { this.VPCId = VPCId; return this; } public String getVPCId() { return this.VPCId; } public CreateDdrInstanceRequest setVSwitchId(String vSwitchId) { this.vSwitchId = vSwitchId; return this; } public String getVSwitchId() { return this.vSwitchId; } public CreateDdrInstanceRequest setZoneId(String zoneId) { this.zoneId = zoneId; return this; } public String getZoneId() { return this.zoneId; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy