# Migration Center v1 API - Class VirtualMachinePreferences (1.5.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.5.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.VirtualMachinePreferences)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.4.0/Google.Cloud.MigrationCenter.V1.VirtualMachinePreferences)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.3.0/Google.Cloud.MigrationCenter.V1.VirtualMachinePreferences)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.2.0/Google.Cloud.MigrationCenter.V1.VirtualMachinePreferences)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.1.0/Google.Cloud.MigrationCenter.V1.VirtualMachinePreferences)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/1.0.0/Google.Cloud.MigrationCenter.V1.VirtualMachinePreferences)

    public sealed class VirtualMachinePreferences : IMessage<VirtualMachinePreferences>, IEquatable<VirtualMachinePreferences>, IDeepCloneable<VirtualMachinePreferences>, IBufferMessage, IMessage

Reference documentation and code samples for the Migration Center v1 API class VirtualMachinePreferences.

VirtualMachinePreferences enables you to create sets of assumptions, for
example, a geographical location and pricing track, for your migrated virtual
machines. The set of preferences influence recommendations for migrating
virtual machine assets.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> VirtualMachinePreferences

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[VirtualMachinePreferences](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.VirtualMachinePreferences), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[VirtualMachinePreferences](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.VirtualMachinePreferences), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[VirtualMachinePreferences](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.VirtualMachinePreferences), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.MigrationCenter.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1)

## Assembly

Google.Cloud.MigrationCenter.V1.dll

## Constructors

### VirtualMachinePreferences()

    public VirtualMachinePreferences()

### VirtualMachinePreferences(VirtualMachinePreferences)

    public VirtualMachinePreferences(VirtualMachinePreferences other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.VirtualMachinePreferences` |

## Properties

### CommitmentPlan

    public CommitmentPlan CommitmentPlan { get; set; }

Commitment plan to consider when calculating costs for virtual machine
insights and recommendations.
If you are unsure which value to set, a 3 year commitment plan is often a
good value to start with.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.CommitmentPlan` |   |

### ComputeEnginePreferences

    public ComputeEnginePreferences ComputeEnginePreferences { get; set; }

Compute Engine preferences concern insights and recommendations for Compute
Engine target.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.ComputeEnginePreferences` |   |

### RegionPreferences

    public RegionPreferences RegionPreferences { get; set; }

Region preferences for assets using this preference set.
If you are unsure which value to set, the migration service API region is
often a good value to start with.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.RegionPreferences` |   |

### SizingOptimizationStrategy

    public SizingOptimizationStrategy SizingOptimizationStrategy { get; set; }

Sizing optimization strategy specifies the preferred strategy used when
extrapolating usage data to calculate insights and recommendations for a
virtual machine.
If you are unsure which value to set, a moderate sizing optimization
strategy is often a good value to start with.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.SizingOptimizationStrategy` |   |

### SoleTenancyPreferences

    public SoleTenancyPreferences SoleTenancyPreferences { get; set; }

Preferences concerning Sole Tenant nodes and virtual machines.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.SoleTenancyPreferences` |   |

### TargetProduct

    public ComputeMigrationTargetProduct TargetProduct { get; set; }

Target product for assets using this preference set.
Specify either target product or business goal, but
not both.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.ComputeMigrationTargetProduct` |   |

### VmwareEnginePreferences

    public VmwareEnginePreferences VmwareEnginePreferences { get; set; }

Preferences concerning insights and recommendations for
Google Cloud VMware Engine.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.MigrationCenter.V1/latest/Google.Cloud.MigrationCenter.V1.VmwareEnginePreferences` |   |