Class IaasVMRestoreWithRehydrationRequest


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

      • IaasVMRestoreWithRehydrationRequest

        public IaasVMRestoreWithRehydrationRequest()
    • 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.
      • 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.
      • 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.
      • 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.