Class AzureWorkloadRestoreRequest
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequest
com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadRestoreRequest
- Direct Known Subclasses:
AzureWorkloadPointInTimeRestoreRequest
,AzureWorkloadSapHanaRestoreRequest
,AzureWorkloadSqlRestoreRequest
AzureWorkload-specific restore.
-
Constructor Summary
ConstructorDescriptionCreates an instance of AzureWorkloadRestoreRequest class. -
Method Summary
Modifier and TypeMethodDescriptionGet the propertyBag property: Workload specific property bag.Get the recoveryMode property: Defines whether the current recovery mode is file restore or database restore.Get the recoveryType property: Type of this recovery.Get the sourceResourceId property: Fully qualified ARM ID of the VM on which workload that was running is being recovered.Get the targetInfo property: Details of target database.Get the targetVirtualMachineId property: This is the complete ARM Id of the target VM For e.g.void
validate()
Validates the instance.withPropertyBag
(Map<String, String> propertyBag) Set the propertyBag property: Workload specific property bag.withRecoveryMode
(RecoveryMode recoveryMode) Set the recoveryMode property: Defines whether the current recovery mode is file restore or database restore.withRecoveryType
(RecoveryType recoveryType) Set the recoveryType property: Type of this recovery.withSourceResourceId
(String sourceResourceId) Set the sourceResourceId property: Fully qualified ARM ID of the VM on which workload that was running is being recovered.withTargetInfo
(TargetRestoreInfo targetInfo) Set the targetInfo property: Details of target database.withTargetVirtualMachineId
(String targetVirtualMachineId) Set the targetVirtualMachineId property: This is the complete ARM Id of the target VM For e.g.
-
Constructor Details
-
AzureWorkloadRestoreRequest
public AzureWorkloadRestoreRequest()Creates an instance of AzureWorkloadRestoreRequest class.
-
-
Method Details
-
recoveryType
Get the recoveryType property: Type of this recovery.- Returns:
- the recoveryType value.
-
withRecoveryType
Set the recoveryType property: Type of this recovery.- Parameters:
recoveryType
- the recoveryType value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
sourceResourceId
Get the sourceResourceId property: Fully qualified ARM ID of the VM on which workload that was running is being recovered.- Returns:
- the sourceResourceId value.
-
withSourceResourceId
Set the sourceResourceId property: Fully qualified ARM ID of the VM on which workload that was running is being recovered.- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
propertyBag
Get the propertyBag property: Workload specific property bag.- Returns:
- the propertyBag value.
-
withPropertyBag
Set the propertyBag property: Workload specific property bag.- Parameters:
propertyBag
- the propertyBag value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
targetInfo
Get the targetInfo property: Details of target database.- Returns:
- the targetInfo value.
-
withTargetInfo
Set the targetInfo property: Details of target database.- Parameters:
targetInfo
- the targetInfo value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
recoveryMode
Get the recoveryMode property: Defines whether the current recovery mode is file restore or database restore.- Returns:
- the recoveryMode value.
-
withRecoveryMode
Set the recoveryMode property: Defines whether the current recovery mode is file restore or database restore.- Parameters:
recoveryMode
- the recoveryMode value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
targetVirtualMachineId
Get 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}.- Returns:
- the targetVirtualMachineId value.
-
withTargetVirtualMachineId
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}.- Parameters:
targetVirtualMachineId
- the targetVirtualMachineId value to set.- Returns:
- the AzureWorkloadRestoreRequest object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classRestoreRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-