public class RestoreInstanceRequest extends AbstractModel
Constructor and Description |
---|
RestoreInstanceRequest() |
RestoreInstanceRequest(RestoreInstanceRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Long |
getBackupId()
Get Backup file ID, which can be obtained through the `Id` field in the returned value of the `DescribeBackups` API
|
String[] |
getDBList()
Get Database to be overwritten, which is required when overwriting a rollback database.
|
String |
getGroupId()
Get Group ID of unarchived backup files grouped by backup task
|
String |
getInstanceId()
Get Instance ID in the format of mssql-j8kv137v
|
RenameRestoreDatabase[] |
getRenameRestore()
Get Restore the databases listed in `ReNameRestoreDatabase` and rename them after restoration.
|
String |
getTargetInstanceId()
Get ID of the target instance to which the backup is restored.
|
Long |
getType()
Get Rollback type.
|
void |
setBackupId(Long BackupId)
Set Backup file ID, which can be obtained through the `Id` field in the returned value of the `DescribeBackups` API
|
void |
setDBList(String[] DBList)
Set Database to be overwritten, which is required when overwriting a rollback database.
|
void |
setGroupId(String GroupId)
Set Group ID of unarchived backup files grouped by backup task
|
void |
setInstanceId(String InstanceId)
Set Instance ID in the format of mssql-j8kv137v
|
void |
setRenameRestore(RenameRestoreDatabase[] RenameRestore)
Set Restore the databases listed in `ReNameRestoreDatabase` and rename them after restoration.
|
void |
setTargetInstanceId(String TargetInstanceId)
Set ID of the target instance to which the backup is restored.
|
void |
setType(Long Type)
Set Rollback type.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public RestoreInstanceRequest()
public RestoreInstanceRequest(RestoreInstanceRequest source)
public String getInstanceId()
public void setInstanceId(String InstanceId)
InstanceId
- Instance ID in the format of mssql-j8kv137vpublic Long getBackupId()
public void setBackupId(Long BackupId)
BackupId
- Backup file ID, which can be obtained through the `Id` field in the returned value of the `DescribeBackups` APIpublic String getTargetInstanceId()
public void setTargetInstanceId(String TargetInstanceId)
TargetInstanceId
- ID of the target instance to which the backup is restored. The target instance should be under the same `APPID`. If this parameter is left empty, ID of the source instance will be used.public RenameRestoreDatabase[] getRenameRestore()
public void setRenameRestore(RenameRestoreDatabase[] RenameRestore)
RenameRestore
- Restore the databases listed in `ReNameRestoreDatabase` and rename them after restoration. If this parameter is left empty, all databases will be restored and renamed in the default format.public Long getType()
public void setType(Long Type)
Type
- Rollback type. Valid values: `0` (overwriting), `1` (renaming).public String[] getDBList()
public void setDBList(String[] DBList)
DBList
- Database to be overwritten, which is required when overwriting a rollback database.public String getGroupId()
public void setGroupId(String GroupId)
GroupId
- Group ID of unarchived backup files grouped by backup taskCopyright © 2023. All rights reserved.