Class AzureWorkloadPointInTimeRestoreRequest
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequest
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadRestoreRequest
-
- com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadPointInTimeRestoreRequest
-
public final class AzureWorkloadPointInTimeRestoreRequest extends AzureWorkloadRestoreRequest
AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore.
-
-
Constructor Summary
Constructors Constructor Description AzureWorkloadPointInTimeRestoreRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OffsetDateTime
pointInTime()
Get the pointInTime property: PointInTime value.void
validate()
Validates the instance.AzureWorkloadPointInTimeRestoreRequest
withPointInTime(OffsetDateTime pointInTime)
Set the pointInTime property: PointInTime value.AzureWorkloadPointInTimeRestoreRequest
withPropertyBag(Map<String,String> propertyBag)
Set the propertyBag property: Workload specific property bag.AzureWorkloadPointInTimeRestoreRequest
withRecoveryMode(RecoveryMode recoveryMode)
Set the recoveryMode property: Defines whether the current recovery mode is file restore or database restore.AzureWorkloadPointInTimeRestoreRequest
withRecoveryType(RecoveryType recoveryType)
Set the recoveryType property: Type of this recovery.AzureWorkloadPointInTimeRestoreRequest
withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: Fully qualified ARM ID of the VM on which workload that was running is being recovered.AzureWorkloadPointInTimeRestoreRequest
withTargetInfo(TargetRestoreInfo targetInfo)
Set the targetInfo property: Details of target database.AzureWorkloadPointInTimeRestoreRequest
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.AzureWorkloadRestoreRequest
propertyBag, recoveryMode, recoveryType, sourceResourceId, targetInfo, targetVirtualMachineId
-
-
-
-
Method Detail
-
pointInTime
public OffsetDateTime pointInTime()
Get the pointInTime property: PointInTime value.- Returns:
- the pointInTime value.
-
withPointInTime
public AzureWorkloadPointInTimeRestoreRequest withPointInTime(OffsetDateTime pointInTime)
Set the pointInTime property: PointInTime value.- Parameters:
pointInTime
- the pointInTime value to set.- Returns:
- the AzureWorkloadPointInTimeRestoreRequest object itself.
-
withRecoveryType
public AzureWorkloadPointInTimeRestoreRequest withRecoveryType(RecoveryType recoveryType)
Set the recoveryType property: Type of this recovery.- Overrides:
withRecoveryType
in classAzureWorkloadRestoreRequest
- Parameters:
recoveryType
- the recoveryType value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
withSourceResourceId
public AzureWorkloadPointInTimeRestoreRequest 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 classAzureWorkloadRestoreRequest
- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
withPropertyBag
public AzureWorkloadPointInTimeRestoreRequest withPropertyBag(Map<String,String> propertyBag)
Set the propertyBag property: Workload specific property bag.- Overrides:
withPropertyBag
in classAzureWorkloadRestoreRequest
- Parameters:
propertyBag
- the propertyBag value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
withTargetInfo
public AzureWorkloadPointInTimeRestoreRequest withTargetInfo(TargetRestoreInfo targetInfo)
Set the targetInfo property: Details of target database.- Overrides:
withTargetInfo
in classAzureWorkloadRestoreRequest
- Parameters:
targetInfo
- the targetInfo value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
withRecoveryMode
public AzureWorkloadPointInTimeRestoreRequest withRecoveryMode(RecoveryMode recoveryMode)
Set the recoveryMode property: Defines whether the current recovery mode is file restore or database restore.- Overrides:
withRecoveryMode
in classAzureWorkloadRestoreRequest
- Parameters:
recoveryMode
- the recoveryMode value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
withTargetVirtualMachineId
public AzureWorkloadPointInTimeRestoreRequest 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 classAzureWorkloadRestoreRequest
- Parameters:
targetVirtualMachineId
- the targetVirtualMachineId value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classAzureWorkloadRestoreRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-