Class IaasVMRestoreWithRehydrationRequest


public final class IaasVMRestoreWithRehydrationRequest extends IaasVMRestoreRequest
IaaS VM workload-specific restore with integrated rehydration of recovery point.
  • Constructor Details

    • IaasVMRestoreWithRehydrationRequest

      public IaasVMRestoreWithRehydrationRequest()
      Creates an instance of IaasVMRestoreWithRehydrationRequest class.
  • Method Details

    • 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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      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 class IaasVMRestoreRequest
      Parameters:
      identityBasedRestoreDetails - the identityBasedRestoreDetails value to set.
      Returns:
      the IaasVMRestoreRequest object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class IaasVMRestoreRequest
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.