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

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

The ID of the backup set based on which you want to restore databases of the source instance. When you replicate databases by backup set, you can call the DescribeBackups operation to obtain the ID of the backup set.

*
*

You must specify one of the BackupId and RestoreTime parameters.

*
* * example: *

106523874****

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

The source instance ID. You can call the DescribeDBInstances operation to query the instance ID.

*

This parameter is required.

* * example: *

rm-uf6wjk5xxxxxxx

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

The names of the databases that you want to copy. Format: Source database name 1,Source database name 2.

*

This parameter is required.

* * example: *

{"test1":"newtest1","test2":"newtest2"}

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

The point in time when the system replicates databases. You can select a point in time within the 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.

*
*

You must specify one of the BackupId and RestoreTime parameters.

*
* * example: *

2011-06-11T16:00:00Z

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

Specifies whether to copy users and permissions.

*
    *
  • YES: copies users and permissions. If the destination instance has a user whose name is the same as a user in the source instance, the permissions of the user in the source instance will also be granted to the user in the destination instance after you copy user permissions.
  • *
  • NO: does not copy users and permissions.
  • *
*

Default value: NO.

* * example: *

NO

*/ @NameInMap("SyncUserPrivilege") public String syncUserPrivilege; /** *

The destination instance ID. You can call the DescribeDBInstances operation to query the instance ID.

*

This parameter is required.

* * example: *

rm-ut5ajk3xxxxxxx

*/ @NameInMap("TargetDBInstanceId") public String targetDBInstanceId; public static CopyDatabaseBetweenInstancesRequest build(java.util.Map map) throws Exception { CopyDatabaseBetweenInstancesRequest self = new CopyDatabaseBetweenInstancesRequest(); return TeaModel.build(map, self); } public CopyDatabaseBetweenInstancesRequest setBackupId(String backupId) { this.backupId = backupId; return this; } public String getBackupId() { return this.backupId; } public CopyDatabaseBetweenInstancesRequest setDBInstanceId(String DBInstanceId) { this.DBInstanceId = DBInstanceId; return this; } public String getDBInstanceId() { return this.DBInstanceId; } public CopyDatabaseBetweenInstancesRequest setDbNames(String dbNames) { this.dbNames = dbNames; return this; } public String getDbNames() { return this.dbNames; } public CopyDatabaseBetweenInstancesRequest setResourceOwnerId(Long resourceOwnerId) { this.resourceOwnerId = resourceOwnerId; return this; } public Long getResourceOwnerId() { return this.resourceOwnerId; } public CopyDatabaseBetweenInstancesRequest setRestoreTime(String restoreTime) { this.restoreTime = restoreTime; return this; } public String getRestoreTime() { return this.restoreTime; } public CopyDatabaseBetweenInstancesRequest setSyncUserPrivilege(String syncUserPrivilege) { this.syncUserPrivilege = syncUserPrivilege; return this; } public String getSyncUserPrivilege() { return this.syncUserPrivilege; } public CopyDatabaseBetweenInstancesRequest setTargetDBInstanceId(String targetDBInstanceId) { this.targetDBInstanceId = targetDBInstanceId; return this; } public String getTargetDBInstanceId() { return this.targetDBInstanceId; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy