Class IaasVMRestoreWithRehydrationRequest
- java.lang.Object
-
- com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequest
-
- com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreRequest
-
- com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreWithRehydrationRequest
-
public final class IaasVMRestoreWithRehydrationRequest extends IaasVMRestoreRequest
IaaS VM workload-specific restore with integrated rehydration of recovery point.
-
-
Constructor Summary
Constructors Constructor Description IaasVMRestoreWithRehydrationRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecoveryPointRehydrationInfo
recoveryPointRehydrationInfo()
Get the recoveryPointRehydrationInfo property: RP Rehydration Info.void
validate()
Validates the instance.IaasVMRestoreWithRehydrationRequest
withAffinityGroup(String affinityGroup)
Set the affinityGroup property: Affinity group associated to VM to be restored.IaasVMRestoreWithRehydrationRequest
withCreateNewCloudService(Boolean createNewCloudService)
Set the createNewCloudService property: Should a new cloud service be created while restoring the VM.IaasVMRestoreWithRehydrationRequest
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.IaasVMRestoreWithRehydrationRequest
withEncryptionDetails(EncryptionDetails encryptionDetails)
Set the encryptionDetails property: Details needed if the VM was encrypted at the time of backup.IaasVMRestoreWithRehydrationRequest
withIdentityBasedRestoreDetails(IdentityBasedRestoreDetails identityBasedRestoreDetails)
Set the identityBasedRestoreDetails property: IaaS VM workload specific restore details for restores using managed identity.IaasVMRestoreWithRehydrationRequest
withIdentityInfo(IdentityInfo identityInfo)
Set the identityInfo property: Managed Identity information required to access customer storage account.IaasVMRestoreWithRehydrationRequest
withOriginalStorageAccountOption(Boolean originalStorageAccountOption)
Set the originalStorageAccountOption property: Original Storage Account Option.IaasVMRestoreWithRehydrationRequest
withRecoveryPointId(String recoveryPointId)
Set the recoveryPointId property: ID of the backup copy to be recovered.IaasVMRestoreWithRehydrationRequest
withRecoveryPointRehydrationInfo(RecoveryPointRehydrationInfo recoveryPointRehydrationInfo)
Set the recoveryPointRehydrationInfo property: RP Rehydration Info.IaasVMRestoreWithRehydrationRequest
withRecoveryType(RecoveryType recoveryType)
Set the recoveryType property: Type of this recovery.IaasVMRestoreWithRehydrationRequest
withRegion(String region)
Set the region property: Region in which the virtual machine is restored.IaasVMRestoreWithRehydrationRequest
withRestoreDiskLunList(List<Integer> restoreDiskLunList)
Set the restoreDiskLunList property: List of Disk LUNs for partial restore.IaasVMRestoreWithRehydrationRequest
withRestoreWithManagedDisks(Boolean restoreWithManagedDisks)
Set the restoreWithManagedDisks property: Flag to denote of an Unmanaged disk VM should be restored with Managed disks.IaasVMRestoreWithRehydrationRequest
withSourceResourceId(String sourceResourceId)
Set the sourceResourceId property: Fully qualified ARM ID of the VM which is being recovered.IaasVMRestoreWithRehydrationRequest
withStorageAccountId(String storageAccountId)
Set the storageAccountId property: Fully qualified ARM ID of the storage account to which the VM has to be restored.IaasVMRestoreWithRehydrationRequest
withSubnetId(String subnetId)
Set the subnetId property: Subnet ID, is the subnet ID associated with the to be restored VM.IaasVMRestoreWithRehydrationRequest
withTargetDomainNameId(String targetDomainNameId)
Set the targetDomainNameId property: Fully qualified ARM ID of the domain name to be associated to the VM being restored.IaasVMRestoreWithRehydrationRequest
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.IaasVMRestoreWithRehydrationRequest
withTargetVirtualMachineId(String targetVirtualMachineId)
Set the targetVirtualMachineId property: This is the complete ARM Id of the VM that will be created.IaasVMRestoreWithRehydrationRequest
withVirtualNetworkId(String virtualNetworkId)
Set the virtualNetworkId property: This is the virtual network Id of the vnet that will be attached to the virtual machine.IaasVMRestoreWithRehydrationRequest
withZones(List<String> zones)
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
-
-
-
-
Method Detail
-
recoveryPointRehydrationInfo
public RecoveryPointRehydrationInfo 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
public IaasVMRestoreWithRehydrationRequest withRecoveryPointId(String recoveryPointId)
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
public IaasVMRestoreWithRehydrationRequest withRecoveryType(RecoveryType recoveryType)
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
public IaasVMRestoreWithRehydrationRequest withSourceResourceId(String sourceResourceId)
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
public IaasVMRestoreWithRehydrationRequest 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. For e.g. /subscriptions/{subId}/resourcegroups/{rg}.- Overrides:
withTargetResourceGroupId
in classIaasVMRestoreRequest
- Parameters:
targetResourceGroupId
- the targetResourceGroupId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withStorageAccountId
public IaasVMRestoreWithRehydrationRequest withStorageAccountId(String storageAccountId)
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
public IaasVMRestoreWithRehydrationRequest withVirtualNetworkId(String virtualNetworkId)
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
public IaasVMRestoreWithRehydrationRequest withSubnetId(String subnetId)
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
public IaasVMRestoreWithRehydrationRequest withTargetDomainNameId(String targetDomainNameId)
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
public IaasVMRestoreWithRehydrationRequest withRegion(String region)
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
public IaasVMRestoreWithRehydrationRequest withAffinityGroup(String affinityGroup)
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
public IaasVMRestoreWithRehydrationRequest withCreateNewCloudService(Boolean createNewCloudService)
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
public IaasVMRestoreWithRehydrationRequest withRestoreDiskLunList(List<Integer> restoreDiskLunList)
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
public IaasVMRestoreWithRehydrationRequest 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.- Overrides:
withDiskEncryptionSetId
in classIaasVMRestoreRequest
- Parameters:
diskEncryptionSetId
- the diskEncryptionSetId value to set.- Returns:
- the IaasVMRestoreRequest object itself.
-
withZones
public IaasVMRestoreWithRehydrationRequest withZones(List<String> zones)
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
public IaasVMRestoreWithRehydrationRequest withIdentityInfo(IdentityInfo identityInfo)
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.
-
-