MigrateTaskProps
Properties for defining a MigrateTask
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-rds-migratetask
Initializer
import com.aliyun.ros.cdk.rds.MigrateTaskProps;
MigrateTaskProps.builder()
.backupMode(java.lang.String)
.backupMode(IResolvable)
.dbInstanceId(java.lang.String)
.dbInstanceId(IResolvable)
.dbName(java.lang.String)
.dbName(IResolvable)
.isOnlineDb(java.lang.Boolean)
.isOnlineDb(IResolvable)
// .checkDbMode(java.lang.String)
// .checkDbMode(IResolvable)
// .ossObjectPositions(java.lang.String)
// .ossObjectPositions(IResolvable)
// .ossUrls(java.lang.String)
// .ossUrls(IResolvable)
.build();
Properties
Name | Type | Description |
---|---|---|
backupMode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property backupMode: The type of the migration task. |
dbInstanceId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbInstanceId: The ID of the instance. |
dbName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property dbName: The name of the database that you want to restore. |
isOnlineDb |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property isOnlineDb: Specifies whether to bring the restored database online for user access. |
checkDbMode |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property checkDbMode: The consistency check method of the database. |
ossObjectPositions |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ossObjectPositions: The information of the backup file in the OSS bucket. |
ossUrls |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property ossUrls: The shared URL of the backup file in the OSS bucket. |
backupMode
Required
public java.lang.Object getBackupMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property backupMode: The type of the migration task.
Valid values: FULL: specifies that full backup files are used to restore data. UPDF: specifies that incremental backup files or log files are used to restore incremental data.
dbInstanceId
Required
public java.lang.Object getDbInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbInstanceId: The ID of the instance.
dbName
Required
public java.lang.Object getDbName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property dbName: The name of the database that you want to restore.
isOnlineDb
Required
public java.lang.Object getIsOnlineDb();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property isOnlineDb: Specifies whether to bring the restored database online for user access.
Note The value for SQL Server 2008 R2 is fixed to True.
checkDbMode
Optional
public java.lang.Object getCheckDbMode();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property checkDbMode: The consistency check method of the database.
Valid values: SyncExecuteDBCheck: synchronous database check AsyncExecuteDBCheck: asynchronous database check Default value: AsyncExecuteDBCheck (compatible with SQL Server 2008 R2). Note When IsOnlineDB is set to True, this value is valid.
ossObjectPositions
Optional
public java.lang.Object getOssObjectPositions();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ossObjectPositions: The information of the backup file in the OSS bucket.
The values consist of three parts that are separated by colons (:): The endpoint of the OSS bucket: oss-ap-southeast-1.aliyuncs.com. The name of the OSS bucket: rdsmssqlsingapore. The key of the backup file in the OSS bucket: autotest_2008R2_TestMigration_FULL.bak. Note This parameter is optional for instances that run SQL Server 2008 R2. This parameter is required for instances that run a database engine later than SQL Server 2008 R2.
ossUrls
Optional
public java.lang.Object getOssUrls();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property ossUrls: The shared URL of the backup file in the OSS bucket.
The URL must be encoded. If you specify multiple URLs, separate them with vertical bars (|) and then encode them. Note This parameter must be entered for instances that run SQL Server 2008 R2.