public sealed class AllocationAffinity : IMessage<AllocationAffinity>, IEquatable<AllocationAffinity>, IDeepCloneable<AllocationAffinity>, IBufferMessage, IMessage
Reference documentation and code samples for the Backup and DR Service v1 API class AllocationAffinity.
Specifies the reservations that this instance can consume from.
[[["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 covers the \u003ccode\u003eAllocationAffinity\u003c/code\u003e class within the Google Cloud Backup and DR Service v1 API, detailing its use in specifying instance reservation consumption.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAllocationAffinity\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing various functionalities for message handling and object comparison.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eAllocationAffinity\u003c/code\u003e is 2.1.0, and the documentation includes details for several prior versions, ranging from 2.0.0 down to 1.0.0-beta02.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eConsumeAllocationType\u003c/code\u003e, \u003ccode\u003eHasConsumeAllocationType\u003c/code\u003e, \u003ccode\u003eHasKey\u003c/code\u003e, \u003ccode\u003eKey\u003c/code\u003e, and \u003ccode\u003eValues\u003c/code\u003e, which define the specifics of the reservation consumption, and whether they are set.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAllocationAffinity\u003c/code\u003e also includes two constructors, one a parameterless default constructor and the second, a copy constructor taking an existing \u003ccode\u003eAllocationAffinity\u003c/code\u003e instance.\u003c/p\u003e\n"]]],[],null,[]]