Class TargetRestoreInfo
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.TargetRestoreInfo
Details about target workload during restore operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the containerId property: Resource Id name of the container in which Target DataBase resides.Get the databaseName property: Database name InstanceName/DataBaseName for SQL or System/DbName for SAP Hana.Get the overwriteOption property: Can Overwrite if Target DataBase already exists.Get the targetDirectoryForFileRestore property: Target directory location for restore as files.void
validate()
Validates the instance.withContainerId
(String containerId) Set the containerId property: Resource Id name of the container in which Target DataBase resides.withDatabaseName
(String databaseName) Set the databaseName property: Database name InstanceName/DataBaseName for SQL or System/DbName for SAP Hana.withOverwriteOption
(OverwriteOptions overwriteOption) Set the overwriteOption property: Can Overwrite if Target DataBase already exists.withTargetDirectoryForFileRestore
(String targetDirectoryForFileRestore) Set the targetDirectoryForFileRestore property: Target directory location for restore as files.
-
Constructor Details
-
TargetRestoreInfo
public TargetRestoreInfo()Creates an instance of TargetRestoreInfo class.
-
-
Method Details
-
overwriteOption
Get the overwriteOption property: Can Overwrite if Target DataBase already exists.- Returns:
- the overwriteOption value.
-
withOverwriteOption
Set the overwriteOption property: Can Overwrite if Target DataBase already exists.- Parameters:
overwriteOption
- the overwriteOption value to set.- Returns:
- the TargetRestoreInfo object itself.
-
containerId
Get the containerId property: Resource Id name of the container in which Target DataBase resides.- Returns:
- the containerId value.
-
withContainerId
Set the containerId property: Resource Id name of the container in which Target DataBase resides.- Parameters:
containerId
- the containerId value to set.- Returns:
- the TargetRestoreInfo object itself.
-
databaseName
Get the databaseName property: Database name InstanceName/DataBaseName for SQL or System/DbName for SAP Hana.- Returns:
- the databaseName value.
-
withDatabaseName
Set the databaseName property: Database name InstanceName/DataBaseName for SQL or System/DbName for SAP Hana.- Parameters:
databaseName
- the databaseName value to set.- Returns:
- the TargetRestoreInfo object itself.
-
targetDirectoryForFileRestore
Get the targetDirectoryForFileRestore property: Target directory location for restore as files.- Returns:
- the targetDirectoryForFileRestore value.
-
withTargetDirectoryForFileRestore
Set the targetDirectoryForFileRestore property: Target directory location for restore as files.- Parameters:
targetDirectoryForFileRestore
- the targetDirectoryForFileRestore value to set.- Returns:
- the TargetRestoreInfo object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-