Class IaasVMRestoreRequest
java.lang.Object
com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequest
com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreRequest
- Direct Known Subclasses:
IaasVMRestoreWithRehydrationRequest
IaaS VM workload-specific restore.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the affinityGroup property: Affinity group associated to VM to be restored.Get the createNewCloudService property: Should a new cloud service be created while restoring the VM.Get the diskEncryptionSetId property: DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key.Get the encryptionDetails property: Details needed if the VM was encrypted at the time of backup.Get the identityBasedRestoreDetails property: IaaS VM workload specific restore details for restores using managed identity.Get the identityInfo property: Managed Identity information required to access customer storage account.Get the originalStorageAccountOption property: Original Storage Account Option.Get the recoveryPointId property: ID of the backup copy to be recovered.Get the recoveryType property: Type of this recovery.region()
Get the region property: Region in which the virtual machine is restored.Get the restoreDiskLunList property: List of Disk LUNs for partial restore.Get the restoreWithManagedDisks property: Flag to denote of an Unmanaged disk VM should be restored with Managed disks.Get the sourceResourceId property: Fully qualified ARM ID of the VM which is being recovered.Get the storageAccountId property: Fully qualified ARM ID of the storage account to which the VM has to be restored.subnetId()
Get the subnetId property: Subnet ID, is the subnet ID associated with the to be restored VM.Get the targetDomainNameId property: Fully qualified ARM ID of the domain name to be associated to the VM being restored.Get the targetResourceGroupId property: This is the ARM Id of the resource group that you want to create for this Virtual machine and other artifacts.Get the targetVirtualMachineId property: This is the complete ARM Id of the VM that will be created.void
validate()
Validates the instance.Get the virtualNetworkId property: This is the virtual network Id of the vnet that will be attached to the virtual machine.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.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.zones()
Get the zones property: Target zone where the VM and its disks should be restored.
-
Constructor Details
-
IaasVMRestoreRequest
public IaasVMRestoreRequest()Creates an instance of IaasVMRestoreRequest class.
-
-
Method Details
-
recoveryPointId
Get the recoveryPointId property: ID of the backup copy to be recovered.- Returns:
- the recoveryPointId value.
-
withRecoveryPointId
Set the recoveryPointId property: ID of the backup copy to be recovered.- Parameters:
recoveryPointId
- the recoveryPointId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
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 IaasVMRestoreRequest object itself.
-
sourceResourceId
Get the sourceResourceId property: Fully qualified ARM ID of the VM which is being recovered.- Returns:
- the sourceResourceId value.
-
withSourceResourceId
Set the sourceResourceId property: Fully qualified ARM ID of the VM which is being recovered.- Parameters:
sourceResourceId
- the sourceResourceId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
targetVirtualMachineId
Get 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}.- Returns:
- the targetVirtualMachineId value.
-
withTargetVirtualMachineId
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}.- Parameters:
targetVirtualMachineId
- the targetVirtualMachineId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
targetResourceGroupId
Get 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}.- Returns:
- the targetResourceGroupId value.
-
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}.- Parameters:
targetResourceGroupId
- the targetResourceGroupId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
storageAccountId
Get the storageAccountId property: Fully qualified ARM ID of the storage account to which the VM has to be restored.- Returns:
- the storageAccountId value.
-
withStorageAccountId
Set the storageAccountId property: Fully qualified ARM ID of the storage account to which the VM has to be restored.- Parameters:
storageAccountId
- the storageAccountId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
virtualNetworkId
Get 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.- Returns:
- the virtualNetworkId value.
-
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.- Parameters:
virtualNetworkId
- the virtualNetworkId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
subnetId
Get 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.- Returns:
- the subnetId value.
-
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.- Parameters:
subnetId
- the subnetId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
targetDomainNameId
Get 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.- Returns:
- the targetDomainNameId value.
-
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.- Parameters:
targetDomainNameId
- the targetDomainNameId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
region
Get the region property: Region in which the virtual machine is restored.- Returns:
- the region value.
-
withRegion
Set the region property: Region in which the virtual machine is restored.- Parameters:
region
- the region value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
affinityGroup
Get the affinityGroup property: Affinity group associated to VM to be restored. Used only for Classic Compute Virtual Machines.- Returns:
- the affinityGroup value.
-
withAffinityGroup
Set the affinityGroup property: Affinity group associated to VM to be restored. Used only for Classic Compute Virtual Machines.- Parameters:
affinityGroup
- the affinityGroup value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
createNewCloudService
Get 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.- Returns:
- the createNewCloudService value.
-
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.- Parameters:
createNewCloudService
- the createNewCloudService value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
originalStorageAccountOption
Get the originalStorageAccountOption property: Original Storage Account Option.- Returns:
- the originalStorageAccountOption value.
-
withOriginalStorageAccountOption
Set the originalStorageAccountOption property: Original Storage Account Option.- Parameters:
originalStorageAccountOption
- the originalStorageAccountOption value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
encryptionDetails
Get the encryptionDetails property: Details needed if the VM was encrypted at the time of backup.- Returns:
- the encryptionDetails value.
-
withEncryptionDetails
Set the encryptionDetails property: Details needed if the VM was encrypted at the time of backup.- Parameters:
encryptionDetails
- the encryptionDetails value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
restoreDiskLunList
Get the restoreDiskLunList property: List of Disk LUNs for partial restore.- Returns:
- the restoreDiskLunList value.
-
withRestoreDiskLunList
Set the restoreDiskLunList property: List of Disk LUNs for partial restore.- Parameters:
restoreDiskLunList
- the restoreDiskLunList value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
restoreWithManagedDisks
Get the restoreWithManagedDisks property: Flag to denote of an Unmanaged disk VM should be restored with Managed disks.- Returns:
- the restoreWithManagedDisks value.
-
withRestoreWithManagedDisks
Set the restoreWithManagedDisks property: Flag to denote of an Unmanaged disk VM should be restored with Managed disks.- Parameters:
restoreWithManagedDisks
- the restoreWithManagedDisks value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
diskEncryptionSetId
Get the diskEncryptionSetId property: DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key.- Returns:
- the diskEncryptionSetId value.
-
withDiskEncryptionSetId
Set the diskEncryptionSetId property: DiskEncryptionSet's ID - needed if the VM needs to be encrypted at rest during restore with customer managed key.- Parameters:
diskEncryptionSetId
- the diskEncryptionSetId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
zones
Get the zones property: Target zone where the VM and its disks should be restored.- Returns:
- the zones value.
-
withZones
Set the zones property: Target zone where the VM and its disks should be restored.- Parameters:
zones
- the zones value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
identityInfo
Get the identityInfo property: Managed Identity information required to access customer storage account.- Returns:
- the identityInfo value.
-
withIdentityInfo
Set the identityInfo property: Managed Identity information required to access customer storage account.- Parameters:
identityInfo
- the identityInfo value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
identityBasedRestoreDetails
Get the identityBasedRestoreDetails property: IaaS VM workload specific restore details for restores using managed identity.- Returns:
- the identityBasedRestoreDetails value.
-
withIdentityBasedRestoreDetails
public IaasVMRestoreRequest withIdentityBasedRestoreDetails(IdentityBasedRestoreDetails identityBasedRestoreDetails) Set the identityBasedRestoreDetails property: IaaS VM workload specific restore details for restores using managed identity.- Parameters:
identityBasedRestoreDetails
- the identityBasedRestoreDetails value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classRestoreRequest
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-