Class RestoreFilesTargetInfo
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase
-
- com.azure.resourcemanager.dataprotection.models.RestoreFilesTargetInfo
-
public final class RestoreFilesTargetInfo extends RestoreTargetInfoBase
Class encapsulating restore as files target parameters.
-
-
Constructor Summary
Constructors Constructor Description RestoreFilesTargetInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TargetDetails
targetDetails()
Get the targetDetails property: Destination of RestoreAsFiles operation, when destination is not a datasource.void
validate()
Validates the instance.RestoreFilesTargetInfo
withRecoveryOption(RecoveryOption recoveryOption)
Set the recoveryOption property: Recovery Option.RestoreFilesTargetInfo
withRestoreLocation(String restoreLocation)
Set the restoreLocation property: Target Restore region.RestoreFilesTargetInfo
withTargetDetails(TargetDetails targetDetails)
Set the targetDetails property: Destination of RestoreAsFiles operation, when destination is not a datasource.-
Methods inherited from class com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase
recoveryOption, restoreLocation
-
-
-
-
Method Detail
-
targetDetails
public TargetDetails targetDetails()
Get the targetDetails property: Destination of RestoreAsFiles operation, when destination is not a datasource.- Returns:
- the targetDetails value.
-
withTargetDetails
public RestoreFilesTargetInfo withTargetDetails(TargetDetails targetDetails)
Set the targetDetails property: Destination of RestoreAsFiles operation, when destination is not a datasource.- Parameters:
targetDetails
- the targetDetails value to set.- Returns:
- the RestoreFilesTargetInfo object itself.
-
withRecoveryOption
public RestoreFilesTargetInfo withRecoveryOption(RecoveryOption recoveryOption)
Set the recoveryOption property: Recovery Option.- Overrides:
withRecoveryOption
in classRestoreTargetInfoBase
- Parameters:
recoveryOption
- the recoveryOption value to set.- Returns:
- the RestoreTargetInfoBase object itself.
-
withRestoreLocation
public RestoreFilesTargetInfo withRestoreLocation(String restoreLocation)
Set the restoreLocation property: Target Restore region.- Overrides:
withRestoreLocation
in classRestoreTargetInfoBase
- Parameters:
restoreLocation
- the restoreLocation value to set.- Returns:
- the RestoreTargetInfoBase object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classRestoreTargetInfoBase
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-