Class AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequest
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadRestoreRequest
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlRestoreRequest
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlPointInTimeRestoreRequest
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
-
public final class AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest extends AzureWorkloadSqlPointInTimeRestoreRequest
AzureWorkload SQL-specific restore with integrated rehydration of recovery point.
-
-
Constructor Summary
Constructors Constructor Description AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecoveryPointRehydrationInfo
recoveryPointRehydrationInfo()
Get the recoveryPointRehydrationInfo property: RP Rehydration Info.void
validate()
Validates the instance.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
withAlternateDirectoryPaths(List<SqlDataDirectoryMapping> alternateDirectoryPaths)
Set the alternateDirectoryPaths property: Data directory details.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
withIsNonRecoverable(Boolean isNonRecoverable)
Set the isNonRecoverable property: SQL specific property where user can chose to set no-recovery when restore operation is tried.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
withPointInTime(OffsetDateTime pointInTime)
Set the pointInTime property: PointInTime value.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
withPropertyBag(Map<String,String> propertyBag)
Set the propertyBag property: Workload specific property bag.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
withRecoveryMode(RecoveryMode recoveryMode)
Set the recoveryMode property: Defines whether the current recovery mode is file restore or database restore.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
withRecoveryPointRehydrationInfo(RecoveryPointRehydrationInfo recoveryPointRehydrationInfo)
Set the recoveryPointRehydrationInfo property: RP Rehydration Info.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
withRecoveryType(RecoveryType recoveryType)
Set the recoveryType property: Type of this recovery.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
withShouldUseAlternateTargetLocation(Boolean shouldUseAlternateTargetLocation)
Set the shouldUseAlternateTargetLocation property: Default option set to true.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: Fully qualified ARM ID of the VM on which workload that was running is being recovered.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
withTargetInfo(TargetRestoreInfo targetInfo)
Set the targetInfo property: Details of target database.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest
withTargetVirtualMachineId(String targetVirtualMachineId)
Set the targetVirtualMachineId property: This is the complete ARM Id of the target VM For e.g.-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlPointInTimeRestoreRequest
pointInTime
-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlRestoreRequest
alternateDirectoryPaths, isNonRecoverable, shouldUseAlternateTargetLocation
-
Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadRestoreRequest
propertyBag, recoveryMode, recoveryType, sourceResourceId, targetInfo, targetVirtualMachineId
-
-
-
-
Method Detail
-
recoveryPointRehydrationInfo
public RecoveryPointRehydrationInfo recoveryPointRehydrationInfo()
Get the recoveryPointRehydrationInfo property: RP Rehydration Info.- Returns:
- the recoveryPointRehydrationInfo value.
-
withRecoveryPointRehydrationInfo
public AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest withRecoveryPointRehydrationInfo(RecoveryPointRehydrationInfo recoveryPointRehydrationInfo)
Set the recoveryPointRehydrationInfo property: RP Rehydration Info.- Parameters:
recoveryPointRehydrationInfo
- the recoveryPointRehydrationInfo value to set.- Returns:
- the AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest object itself.
-
withPointInTime
public AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest withPointInTime(OffsetDateTime pointInTime)
Set the pointInTime property: PointInTime value.- Overrides:
withPointInTime
in classAzureWorkloadSqlPointInTimeRestoreRequest
- Parameters:
pointInTime
- the pointInTime value to set.- Returns:
- the AzureWorkloadSqlPointInTimeRestoreRequest object itself.
-
withShouldUseAlternateTargetLocation
public AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest withShouldUseAlternateTargetLocation(Boolean shouldUseAlternateTargetLocation)
Set the shouldUseAlternateTargetLocation property: Default option set to true. If this is set to false, alternate data directory must be provided.- Overrides:
withShouldUseAlternateTargetLocation
in classAzureWorkloadSqlPointInTimeRestoreRequest
- Parameters:
shouldUseAlternateTargetLocation
- the shouldUseAlternateTargetLocation value to set.- Returns:
- the AzureWorkloadSqlRestoreRequest object itself.
-
withIsNonRecoverable
public AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest withIsNonRecoverable(Boolean isNonRecoverable)
Set the isNonRecoverable property: SQL specific property where user can chose to set no-recovery when restore operation is tried.- Overrides:
withIsNonRecoverable
in classAzureWorkloadSqlPointInTimeRestoreRequest
- Parameters:
isNonRecoverable
- the isNonRecoverable value to set.- Returns:
- the AzureWorkloadSqlRestoreRequest object itself.
-
withAlternateDirectoryPaths
public AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest withAlternateDirectoryPaths(List<SqlDataDirectoryMapping> alternateDirectoryPaths)
Set the alternateDirectoryPaths property: Data directory details.- Overrides:
withAlternateDirectoryPaths
in classAzureWorkloadSqlPointInTimeRestoreRequest
- Parameters:
alternateDirectoryPaths
- the alternateDirectoryPaths value to set.- Returns:
- the AzureWorkloadSqlRestoreRequest object itself.
-
withRecoveryType
public AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest withRecoveryType(RecoveryType recoveryType)
Set the recoveryType property: Type of this recovery.- Overrides:
withRecoveryType
in classAzureWorkloadSqlPointInTimeRestoreRequest
- Parameters:
recoveryType
- the recoveryType value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
withSourceResourceId
public AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: Fully qualified ARM ID of the VM on which workload that was running is being recovered.- Overrides:
withSourceResourceId
in classAzureWorkloadSqlPointInTimeRestoreRequest
- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
withPropertyBag
public AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest withPropertyBag(Map<String,String> propertyBag)
Set the propertyBag property: Workload specific property bag.- Overrides:
withPropertyBag
in classAzureWorkloadSqlPointInTimeRestoreRequest
- Parameters:
propertyBag
- the propertyBag value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
withTargetInfo
public AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest withTargetInfo(TargetRestoreInfo targetInfo)
Set the targetInfo property: Details of target database.- Overrides:
withTargetInfo
in classAzureWorkloadSqlPointInTimeRestoreRequest
- Parameters:
targetInfo
- the targetInfo value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
withRecoveryMode
public AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest withRecoveryMode(RecoveryMode recoveryMode)
Set the recoveryMode property: Defines whether the current recovery mode is file restore or database restore.- Overrides:
withRecoveryMode
in classAzureWorkloadSqlPointInTimeRestoreRequest
- Parameters:
recoveryMode
- the recoveryMode value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
withTargetVirtualMachineId
public AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest withTargetVirtualMachineId(String targetVirtualMachineId)
Set the targetVirtualMachineId property: This is the complete ARM Id of the target VM For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}.- Overrides:
withTargetVirtualMachineId
in classAzureWorkloadSqlPointInTimeRestoreRequest
- Parameters:
targetVirtualMachineId
- the targetVirtualMachineId value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAzureWorkloadSqlPointInTimeRestoreRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-