Class RestoreTargetInfoBase
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.RestoreTargetInfoBase
-
- Direct Known Subclasses:
ItemLevelRestoreTargetInfo
,RestoreFilesTargetInfo
,RestoreTargetInfo
public class RestoreTargetInfoBase extends Object
Base class common to RestoreTargetInfo and RestoreFilesTargetInfo.
-
-
Constructor Summary
Constructors Constructor Description RestoreTargetInfoBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecoveryOption
recoveryOption()
Get the recoveryOption property: Recovery Option.String
restoreLocation()
Get the restoreLocation property: Target Restore region.void
validate()
Validates the instance.RestoreTargetInfoBase
withRecoveryOption(RecoveryOption recoveryOption)
Set the recoveryOption property: Recovery Option.RestoreTargetInfoBase
withRestoreLocation(String restoreLocation)
Set the restoreLocation property: Target Restore region.
-
-
-
Method Detail
-
recoveryOption
public RecoveryOption recoveryOption()
Get the recoveryOption property: Recovery Option.- Returns:
- the recoveryOption value.
-
withRecoveryOption
public RestoreTargetInfoBase withRecoveryOption(RecoveryOption recoveryOption)
Set the recoveryOption property: Recovery Option.- Parameters:
recoveryOption
- the recoveryOption value to set.- Returns:
- the RestoreTargetInfoBase object itself.
-
restoreLocation
public String restoreLocation()
Get the restoreLocation property: Target Restore region.- Returns:
- the restoreLocation value.
-
withRestoreLocation
public RestoreTargetInfoBase withRestoreLocation(String restoreLocation)
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.
-
-