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