public sealed class SoleTenancyPreferences : IMessage<SoleTenancyPreferences>, IEquatable<SoleTenancyPreferences>, IDeepCloneable<SoleTenancyPreferences>, IBufferMessage, IMessage
Reference documentation and code samples for the Migration Center v1 API class SoleTenancyPreferences.
Preferences concerning Sole Tenancy nodes and VMs.
public SoleTenancyPreferences.Types.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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis documentation is for the \u003ccode\u003eSoleTenancyPreferences\u003c/code\u003e class within the Google Cloud Migration Center v1 API, specifically version 1.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSoleTenancyPreferences\u003c/code\u003e class is designed to define preferences for Sole Tenancy nodes and virtual machines during the migration process, implementing several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of this class include \u003ccode\u003eCommitmentPlan\u003c/code\u003e, which lets you specify the commitment plan for calculating costs, \u003ccode\u003eCpuOvercommitRatio\u003c/code\u003e, allowing you to define the CPU overcommit ratio, \u003ccode\u003eHostMaintenancePolicy\u003c/code\u003e, for setting the maintenance policy for the sole tenancy nodes, and \u003ccode\u003eNodeTypes\u003c/code\u003e, a field for setting a list of sole tenant node types.\u003c/p\u003e\n"],["\u003cp\u003eThis class offers two constructors, one default, and one that takes another \u003ccode\u003eSoleTenancyPreferences\u003c/code\u003e instance for copying.\u003c/p\u003e\n"],["\u003cp\u003eThere are several inherited members from the \u003ccode\u003eobject\u003c/code\u003e class, including methods like \u003ccode\u003eGetHashCode()\u003c/code\u003e, \u003ccode\u003eGetType()\u003c/code\u003e, and \u003ccode\u003eToString()\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]