Class IaasVMRestoreWithRehydrationRequest
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequest
com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreRequest
com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreWithRehydrationRequest
IaaS VM workload-specific restore with integrated rehydration of recovery point.
-
Constructor Summary
ConstructorDescriptionCreates an instance of IaasVMRestoreWithRehydrationRequest class. -
Method Summary
Modifier and TypeMethodDescriptionGet the recoveryPointRehydrationInfo property: RP Rehydration Info.void
validate()
Validates the instance.withAffinityGroup
(String affinityGroup) Set the affinityGroup property: Affinity group associated to VM to be restored.withCreateNewCloudService
(Boolean createNewCloudService) Set the createNewCloudService property: Should a new cloud service be created while restoring the VM.withDiskEncryptionSetId
(String diskEncryptionSetId) Set the diskEncryptionSetId property: DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key.withEncryptionDetails
(EncryptionDetails encryptionDetails) Set the encryptionDetails property: Details needed if the VM was encrypted at the time of backup.withIdentityBasedRestoreDetails
(IdentityBasedRestoreDetails identityBasedRestoreDetails) Set the identityBasedRestoreDetails property: IaaS VM workload specific restore details for restores using managed identity.withIdentityInfo
(IdentityInfo identityInfo) Set the identityInfo property: Managed Identity information required to access customer storage account.withOriginalStorageAccountOption
(Boolean originalStorageAccountOption) Set the originalStorageAccountOption property: Original Storage Account Option.withRecoveryPointId
(String recoveryPointId) Set the recoveryPointId property: ID of the backup copy to be recovered.withRecoveryPointRehydrationInfo
(RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) Set the recoveryPointRehydrationInfo property: RP Rehydration Info.withRecoveryType
(RecoveryType recoveryType) Set the recoveryType property: Type of this recovery.withRegion
(String region) Set the region property: Region in which the virtual machine is restored.withRestoreDiskLunList
(List<Integer> restoreDiskLunList) Set the restoreDiskLunList property: List of Disk LUNs for partial restore.withRestoreWithManagedDisks
(Boolean restoreWithManagedDisks) Set the restoreWithManagedDisks property: Flag to denote of an Unmanaged disk VM should be restored with Managed disks.withSourceResourceId
(String sourceResourceId) Set the sourceResourceId property: Fully qualified ARM ID of the VM which is being recovered.withStorageAccountId
(String storageAccountId) Set the storageAccountId property: Fully qualified ARM ID of the storage account to which the VM has to be restored.withSubnetId
(String subnetId) Set the subnetId property: Subnet ID, is the subnet ID associated with the to be restored VM.withTargetDomainNameId
(String targetDomainNameId) Set the targetDomainNameId property: Fully qualified ARM ID of the domain name to be associated to the VM being restored.withTargetResourceGroupId
(String targetResourceGroupId) Set the targetResourceGroupId property: This is the ARM Id of the resource group that you want to create for this Virtual machine and other artifacts.withTargetVirtualMachineId
(String targetVirtualMachineId) Set the targetVirtualMachineId property: This is the complete ARM Id of the VM that will be created.withVirtualNetworkId
(String virtualNetworkId) Set the virtualNetworkId property: This is the virtual network Id of the vnet that will be attached to the virtual machine.Set the zones property: Target zone where the VM and its disks should be restored.Methods inherited from class com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreRequest
affinityGroup, createNewCloudService, diskEncryptionSetId, encryptionDetails, identityBasedRestoreDetails, identityInfo, originalStorageAccountOption, recoveryPointId, recoveryType, region, restoreDiskLunList, restoreWithManagedDisks, sourceResourceId, storageAccountId, subnetId, targetDomainNameId, targetResourceGroupId, targetVirtualMachineId, virtualNetworkId, zones
-
Constructor Details
-
IaasVMRestoreWithRehydrationRequest
public IaasVMRestoreWithRehydrationRequest()Creates an instance of IaasVMRestoreWithRehydrationRequest class.
-
-
Method Details
-
recoveryPointRehydrationInfo
Get the recoveryPointRehydrationInfo property: RP Rehydration Info.- Returns:
- the recoveryPointRehydrationInfo value.
-
withRecoveryPointRehydrationInfo
public IaasVMRestoreWithRehydrationRequest withRecoveryPointRehydrationInfo(RecoveryPointRehydrationInfo recoveryPointRehydrationInfo) Set the recoveryPointRehydrationInfo property: RP Rehydration Info.- Parameters:
recoveryPointRehydrationInfo
- the recoveryPointRehydrationInfo value to set.- Returns:
- the IaasVMRestoreWithRehydrationRequest object itself.
-
withRecoveryPointId
Set the recoveryPointId property: ID of the backup copy to be recovered.- Overrides:
withRecoveryPointId
in classIaasVMRestoreRequest
- Parameters:
recoveryPointId
- the recoveryPointId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withRecoveryType
Set the recoveryType property: Type of this recovery.- Overrides:
withRecoveryType
in classIaasVMRestoreRequest
- Parameters:
recoveryType
- the recoveryType value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withSourceResourceId
Set the sourceResourceId property: Fully qualified ARM ID of the VM which is being recovered.- Overrides:
withSourceResourceId
in classIaasVMRestoreRequest
- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withTargetVirtualMachineId
public IaasVMRestoreWithRehydrationRequest withTargetVirtualMachineId(String targetVirtualMachineId) Set the targetVirtualMachineId property: This is the complete ARM Id of the VM that will be created. For e.g. /subscriptions/{subId}/resourcegroups/{rg}/provider/Microsoft.Compute/virtualmachines/{vm}.- Overrides:
withTargetVirtualMachineId
in classIaasVMRestoreRequest
- Parameters:
targetVirtualMachineId
- the targetVirtualMachineId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withTargetResourceGroupId
Set the targetResourceGroupId property: This is the ARM Id of the resource group that you want to create for this Virtual machine and other artifacts. For e.g. /subscriptions/{subId}/resourcegroups/{rg}.- Overrides:
withTargetResourceGroupId
in classIaasVMRestoreRequest
- Parameters:
targetResourceGroupId
- the targetResourceGroupId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withStorageAccountId
Set the storageAccountId property: Fully qualified ARM ID of the storage account to which the VM has to be restored.- Overrides:
withStorageAccountId
in classIaasVMRestoreRequest
- Parameters:
storageAccountId
- the storageAccountId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withVirtualNetworkId
Set the virtualNetworkId property: This is the virtual network Id of the vnet that will be attached to the virtual machine. User will be validated for join action permissions in the linked access.- Overrides:
withVirtualNetworkId
in classIaasVMRestoreRequest
- Parameters:
virtualNetworkId
- the virtualNetworkId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withSubnetId
Set the subnetId property: Subnet ID, is the subnet ID associated with the to be restored VM. For Classic VMs it would be {VnetID}/Subnet/{SubnetName} and, for the Azure Resource Manager VMs it would be ARM resource ID used to represent the subnet.- Overrides:
withSubnetId
in classIaasVMRestoreRequest
- Parameters:
subnetId
- the subnetId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withTargetDomainNameId
Set the targetDomainNameId property: Fully qualified ARM ID of the domain name to be associated to the VM being restored. This applies only to Classic Virtual Machines.- Overrides:
withTargetDomainNameId
in classIaasVMRestoreRequest
- Parameters:
targetDomainNameId
- the targetDomainNameId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withRegion
Set the region property: Region in which the virtual machine is restored.- Overrides:
withRegion
in classIaasVMRestoreRequest
- Parameters:
region
- the region value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withAffinityGroup
Set the affinityGroup property: Affinity group associated to VM to be restored. Used only for Classic Compute Virtual Machines.- Overrides:
withAffinityGroup
in classIaasVMRestoreRequest
- Parameters:
affinityGroup
- the affinityGroup value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withCreateNewCloudService
Set the createNewCloudService property: Should a new cloud service be created while restoring the VM. If this is false, VM will be restored to the same cloud service as it was at the time of backup.- Overrides:
withCreateNewCloudService
in classIaasVMRestoreRequest
- Parameters:
createNewCloudService
- the createNewCloudService value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withOriginalStorageAccountOption
public IaasVMRestoreWithRehydrationRequest withOriginalStorageAccountOption(Boolean originalStorageAccountOption) Set the originalStorageAccountOption property: Original Storage Account Option.- Overrides:
withOriginalStorageAccountOption
in classIaasVMRestoreRequest
- Parameters:
originalStorageAccountOption
- the originalStorageAccountOption value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withEncryptionDetails
public IaasVMRestoreWithRehydrationRequest withEncryptionDetails(EncryptionDetails encryptionDetails) Set the encryptionDetails property: Details needed if the VM was encrypted at the time of backup.- Overrides:
withEncryptionDetails
in classIaasVMRestoreRequest
- Parameters:
encryptionDetails
- the encryptionDetails value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withRestoreDiskLunList
Set the restoreDiskLunList property: List of Disk LUNs for partial restore.- Overrides:
withRestoreDiskLunList
in classIaasVMRestoreRequest
- Parameters:
restoreDiskLunList
- the restoreDiskLunList value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withRestoreWithManagedDisks
public IaasVMRestoreWithRehydrationRequest withRestoreWithManagedDisks(Boolean restoreWithManagedDisks) Set the restoreWithManagedDisks property: Flag to denote of an Unmanaged disk VM should be restored with Managed disks.- Overrides:
withRestoreWithManagedDisks
in classIaasVMRestoreRequest
- Parameters:
restoreWithManagedDisks
- the restoreWithManagedDisks value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withDiskEncryptionSetId
Set the diskEncryptionSetId property: DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key.- Overrides:
withDiskEncryptionSetId
in classIaasVMRestoreRequest
- Parameters:
diskEncryptionSetId
- the diskEncryptionSetId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withZones
Set the zones property: Target zone where the VM and its disks should be restored.- Overrides:
withZones
in classIaasVMRestoreRequest
- Parameters:
zones
- the zones value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withIdentityInfo
Set the identityInfo property: Managed Identity information required to access customer storage account.- Overrides:
withIdentityInfo
in classIaasVMRestoreRequest
- Parameters:
identityInfo
- the identityInfo value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withIdentityBasedRestoreDetails
public IaasVMRestoreWithRehydrationRequest withIdentityBasedRestoreDetails(IdentityBasedRestoreDetails identityBasedRestoreDetails) Set the identityBasedRestoreDetails property: IaaS VM workload specific restore details for restores using managed identity.- Overrides:
withIdentityBasedRestoreDetails
in classIaasVMRestoreRequest
- Parameters:
identityBasedRestoreDetails
- the identityBasedRestoreDetails value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classIaasVMRestoreRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-