public LastPeriodAmount LastPeriodAmount { get; set; }
Use the last period's actual spend as the budget for the present period.
LastPeriodAmount can only be set when the budget's time period is a
[Filter.calendar_period][google.cloud.billing.budgets.v1beta1.Filter.calendar_period].
It cannot be set in combination with
[Filter.custom_period][google.cloud.billing.budgets.v1beta1.Filter.custom_period].
A specified amount to use as the budget.
currency_code is optional. If specified when creating a budget, it must
match the currency of the billing account. If specified when updating a
budget, it must match the currency_code of the existing budget.
The currency_code is provided on output.
[[["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 page provides documentation for the \u003ccode\u003eBudgetAmount\u003c/code\u003e class within the Google Cloud Billing Budgets v1beta1 API, outlining its purpose for defining budgeted amounts per usage period.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBudgetAmount\u003c/code\u003e class implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, indicating its role in message handling and data comparison.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes constructors for creating new \u003ccode\u003eBudgetAmount\u003c/code\u003e objects, either as empty instances or copies of existing ones, using the parameter \u003ccode\u003eother\u003c/code\u003e for the copy constructor.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBudgetAmount\u003c/code\u003e class contains properties like \u003ccode\u003eBudgetAmountCase\u003c/code\u003e, \u003ccode\u003eLastPeriodAmount\u003c/code\u003e, and \u003ccode\u003eSpecifiedAmount\u003c/code\u003e, allowing for different budget specifications such as using the last period's spend or a user-defined amount.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eLastPeriodAmount\u003c/code\u003e property can only be set if the budget's time period is a \u003ccode\u003eFilter.calendar_period\u003c/code\u003e, and cannot be set in combination with \u003ccode\u003eFilter.custom_period\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Cloud Billing Budget v1beta1 API - Class BudgetAmount (2.0.0-beta06)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta06 (latest)](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetAmount)\n- [2.0.0-beta05](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/2.0.0-beta05/Google.Cloud.Billing.Budgets.V1Beta1.BudgetAmount)\n- [1.0.0-beta05](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/1.0.0-beta05/Google.Cloud.Billing.Budgets.V1Beta1.BudgetAmount) \n\n public sealed class BudgetAmount : IMessage\u003cBudgetAmount\u003e, IEquatable\u003cBudgetAmount\u003e, IDeepCloneable\u003cBudgetAmount\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Billing Budget v1beta1 API class BudgetAmount.\n\nThe budgeted amount for each usage period. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BudgetAmount \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BudgetAmount](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetAmount), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BudgetAmount](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetAmount), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BudgetAmount](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1.BudgetAmount), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Billing.Budgets.V1Beta1](/dotnet/docs/reference/Google.Cloud.Billing.Budgets.V1Beta1/latest/Google.Cloud.Billing.Budgets.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.Billing.Budgets.V1Beta1.dll\n\nConstructors\n------------\n\n### BudgetAmount()\n\n public BudgetAmount()\n\n### BudgetAmount(BudgetAmount)\n\n public BudgetAmount(BudgetAmount other)\n\nProperties\n----------\n\n### BudgetAmountCase\n\n public BudgetAmount.BudgetAmountOneofCase BudgetAmountCase { get; }\n\n### LastPeriodAmount\n\n public LastPeriodAmount LastPeriodAmount { get; set; }\n\nUse the last period's actual spend as the budget for the present period.\nLastPeriodAmount can only be set when the budget's time period is a\n\\[Filter.calendar_period\\]\\[google.cloud.billing.budgets.v1beta1.Filter.calendar_period\\].\nIt cannot be set in combination with\n\\[Filter.custom_period\\]\\[google.cloud.billing.budgets.v1beta1.Filter.custom_period\\].\n\n### SpecifiedAmount\n\n public Money SpecifiedAmount { get; set; }\n\nA specified amount to use as the budget.\n`currency_code` is optional. If specified when creating a budget, it must\nmatch the currency of the billing account. If specified when updating a\nbudget, it must match the currency_code of the existing budget.\nThe `currency_code` is provided on output."]]