Class RestoreTargetInfoBase
java.lang.Object
com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase
- Direct Known Subclasses:
ItemLevelRestoreTargetInfo
,RestoreFilesTargetInfo
,RestoreTargetInfo
Base class common to RestoreTargetInfo and RestoreFilesTargetInfo.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the recoveryOption property: Recovery Option.Get the restoreLocation property: Target Restore region.void
validate()
Validates the instance.withRecoveryOption
(RecoveryOption recoveryOption) Set the recoveryOption property: Recovery Option.withRestoreLocation
(String restoreLocation) Set the restoreLocation property: Target Restore region.
-
Constructor Details
-
RestoreTargetInfoBase
public RestoreTargetInfoBase()Creates an instance of RestoreTargetInfoBase class.
-
-
Method Details
-
recoveryOption
Get the recoveryOption property: Recovery Option.- Returns:
- the recoveryOption value.
-
withRecoveryOption
Set the recoveryOption property: Recovery Option.- Parameters:
recoveryOption
- the recoveryOption value to set.- Returns:
- the RestoreTargetInfoBase object itself.
-
restoreLocation
Get the restoreLocation property: Target Restore region.- Returns:
- the restoreLocation value.
-
withRestoreLocation
Set the restoreLocation property: Target Restore region.- Parameters:
restoreLocation
- the restoreLocation value to set.- Returns:
- the RestoreTargetInfoBase object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-