RestoreTaskProps
Properties for defining a RestoreTask.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-dbs-restoretask
Initializer
import com.aliyun.ros.cdk.dbs.RestoreTaskProps;
RestoreTaskProps.builder()
.backupPlanId(java.lang.String)
.backupPlanId(IResolvable)
.destinationEndpointInstanceType(java.lang.String)
.destinationEndpointInstanceType(IResolvable)
.restoreTaskName(java.lang.String)
.restoreTaskName(IResolvable)
// .backupGatewayId(java.lang.Number)
// .backupGatewayId(IResolvable)
// .backupSetId(java.lang.String)
// .backupSetId(IResolvable)
// .destinationEndpointDatabaseName(java.lang.String)
// .destinationEndpointDatabaseName(IResolvable)
// .destinationEndpointInstanceId(java.lang.String)
// .destinationEndpointInstanceId(IResolvable)
// .destinationEndpointIp(java.lang.String)
// .destinationEndpointIp(IResolvable)
// .destinationEndpointOracleSid(java.lang.String)
// .destinationEndpointOracleSid(IResolvable)
// .destinationEndpointPassword(java.lang.String)
// .destinationEndpointPassword(IResolvable)
// .destinationEndpointPort(java.lang.Number)
// .destinationEndpointPort(IResolvable)
// .destinationEndpointRegion(java.lang.String)
// .destinationEndpointRegion(IResolvable)
// .destinationEndpointUserName(java.lang.String)
// .destinationEndpointUserName(IResolvable)
// .duplicateConflict(java.lang.String)
// .duplicateConflict(IResolvable)
// .restoreDir(java.lang.String)
// .restoreDir(IResolvable)
// .restoreHome(java.lang.String)
// .restoreHome(IResolvable)
// .restoreObjects(java.lang.String)
// .restoreObjects(IResolvable)
// .restoreTime(java.lang.Number)
// .restoreTime(IResolvable)
// .startTask(java.lang.Boolean)
// .startTask(IResolvable)
.build();
Properties
| Name | Type | Description |
|---|---|---|
backupPlanId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property backupPlanId: The ID of the backup plan. |
destinationEndpointInstanceType | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property destinationEndpointInstanceType: The type of the destination endpoint. |
restoreTaskName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property restoreTaskName: The name of the restoration task. |
backupGatewayId | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property backupGatewayId: The ID of the backup gateway. |
backupSetId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property backupSetId: The ID of the full backup set used for restoration, which is mutually exclusive to RestoreTime. |
destinationEndpointDatabaseName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property destinationEndpointDatabaseName: The name of the RDS database. |
destinationEndpointInstanceId | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property destinationEndpointInstanceId: The ID of the ApsaraDB RDS instance to query. |
destinationEndpointIp | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property destinationEndpointIp: The endpoint used to connect to the database. |
destinationEndpointOracleSid | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property destinationEndpointOracleSid: The SID of the Oracle instance. |
destinationEndpointPassword | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property destinationEndpointPassword: The password for the destination database account. |
destinationEndpointPort | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property destinationEndpointPort: The port that is used to access the database of the primary MySQL server. |
destinationEndpointRegion | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property destinationEndpointRegion: The region of the database. |
destinationEndpointUserName | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property destinationEndpointUserName: The username for the destination database account. |
duplicateConflict | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property duplicateConflict: The handling method for conflicts between objects with the same name. |
restoreDir | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property restoreDir: The restore directory. |
restoreHome | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property restoreHome: Database Program Directory. |
restoreObjects | java.lang.String OR com.aliyun.ros.cdk.core.IResolvable | Property restoreObjects: The objects to restore. |
restoreTime | java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable | Property restoreTime: The point-in-time for the restore, specified as a UNIX timestamp in milliseconds. |
startTask | java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable | Property startTask: Start restore task after creating a recovery task. |
backupPlanIdRequired
public java.lang.Object getBackupPlanId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property backupPlanId: The ID of the backup plan.
destinationEndpointInstanceTypeRequired
public java.lang.Object getDestinationEndpointInstanceType();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationEndpointInstanceType: The type of the destination endpoint.
Valid values:
- RDS: an ApsaraDB RDS instance.
- ECS: a self-managed database hosted on an ECS instance.
- Express: a database connected over a leased line, VPN Gateway, or Smart Access Gateway.
- Agent: a database connected via a backup gateway.
- DDS: an ApsaraDB for MongoDB (DDS) instance.
- Other: a database connected over the internet by using a public IP address and port.
- dg: a self-managed database without a public endpoint, connected via Database Gateway.
restoreTaskNameRequired
public java.lang.Object getRestoreTaskName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property restoreTaskName: The name of the restoration task.
backupGatewayIdOptional
public java.lang.Object getBackupGatewayId();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property backupGatewayId: The ID of the backup gateway.
NoteDestinationEndpointInstanceType if you set this parameter to agent, this parameter is required.
backupSetIdOptional
public java.lang.Object getBackupSetId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property backupSetId: The ID of the full backup set used for restoration, which is mutually exclusive to RestoreTime.
destinationEndpointDatabaseNameOptional
public java.lang.Object getDestinationEndpointDatabaseName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationEndpointDatabaseName: The name of the RDS database.
Note When the database type is PostgreSQL or MongoDB, this parameter is required.
destinationEndpointInstanceIdOptional
public java.lang.Object getDestinationEndpointInstanceId();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationEndpointInstanceId: The ID of the ApsaraDB RDS instance to query.
NoteDestinationEndpointInstanceType if the value is RDS, ECS, DDS, or Express, this parameter is required.
destinationEndpointIpOptional
public java.lang.Object getDestinationEndpointIp();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationEndpointIp: The endpoint used to connect to the database.
NoteDestinationEndpointInstanceType is express, agent, or other. This parameter is required.
destinationEndpointOracleSidOptional
public java.lang.Object getDestinationEndpointOracleSid();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationEndpointOracleSid: The SID of the Oracle instance.
Note This parameter is required if the database type is Oracle.
destinationEndpointPasswordOptional
public java.lang.Object getDestinationEndpointPassword();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationEndpointPassword: The password for the destination database account.
This parameter is optional if the database engine is Redis, or if
DestinationEndpointInstanceTypeis set toAgentand the database engine is MSSQL. In other scenarios, this parameter is required.
destinationEndpointPortOptional
public java.lang.Object getDestinationEndpointPort();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property destinationEndpointPort: The port that is used to access the database of the primary MySQL server.
NoteDestinationEndpointInstanceType is in the format of express, agent, other, or ECS. This parameter is required.
destinationEndpointRegionOptional
public java.lang.Object getDestinationEndpointRegion();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationEndpointRegion: The region of the database.
NoteDestinationEndpointInstanceType for RDS, ECS, DDS, Express, or Agent, this parameter is required.
destinationEndpointUserNameOptional
public java.lang.Object getDestinationEndpointUserName();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property destinationEndpointUserName: The username for the destination database account.
This parameter is optional if the database engine is Redis, or if
DestinationEndpointInstanceTypeis set toAgentand the database engine is MSSQL. In other scenarios, this parameter is required.
duplicateConflictOptional
public java.lang.Object getDuplicateConflict();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property duplicateConflict: The handling method for conflicts between objects with the same name.
Valid values: failure: The object with the same name fails (default). renamenew: renames an object with the same name.
restoreDirOptional
public java.lang.Object getRestoreDir();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property restoreDir: The restore directory.
This parameter is required if DestinationEndpointInstanceType is set to Agent and the database type is MySQL.
restoreHomeOptional
public java.lang.Object getRestoreHome();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property restoreHome: Database Program Directory.
restoreObjectsOptional
public java.lang.Object getRestoreObjects();
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property restoreObjects: The objects to restore.
- This parameter is optional if
DestinationEndpointInstanceTypeis set toAgent. In other scenarios, this parameter is required. - The value must be a JSON string in the following format:
[{ "DBName": "source_database_name", "NewDBName": "destination_database_name" }]
You can use this API operation to restore data only at the database level. To restore data at the table level, log on to the console.
restoreTimeOptional
public java.lang.Object getRestoreTime();
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property restoreTime: The point-in-time for the restore, specified as a UNIX timestamp in milliseconds.
startTaskOptional
public java.lang.Object getStartTask();
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property startTask: Start restore task after creating a recovery task.