A specified amount to use as the budget.currency_codeis 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. Thecurrency_codeis provided on output.
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 aFilter.calendar_period. It cannot be set in combination withFilter.custom_period.
getSpecifiedAmount
A specified amount to use as the budget.
currency_codeis 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.
Thecurrency_codeis provided on output.
currency_codeis 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.
Thecurrency_codeis provided on output.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Billing Budgets V1 Client - Class BudgetAmount (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-billing-budgets/latest/V1.BudgetAmount)\n- [2.0.4](/php/docs/reference/cloud-billing-budgets/2.0.4/V1.BudgetAmount)\n- [1.4.5](/php/docs/reference/cloud-billing-budgets/1.4.5/V1.BudgetAmount)\n- [1.3.1](/php/docs/reference/cloud-billing-budgets/1.3.1/V1.BudgetAmount)\n- [1.2.2](/php/docs/reference/cloud-billing-budgets/1.2.2/V1.BudgetAmount)\n- [1.1.0](/php/docs/reference/cloud-billing-budgets/1.1.0/V1.BudgetAmount)\n- [1.0.5](/php/docs/reference/cloud-billing-budgets/1.0.5/V1.BudgetAmount) \nReference documentation and code samples for the Google Cloud Billing Budgets V1 Client class BudgetAmount.\n\nThe budgeted amount for each usage period.\n\nGenerated from protobuf message `google.cloud.billing.budgets.v1.BudgetAmount`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Billing \\\\ Budgets \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSpecifiedAmount\n\nA specified amount to use as the budget.\n\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.\n\n### hasSpecifiedAmount\n\n### setSpecifiedAmount\n\nA specified amount to use as the budget.\n\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.\n\n### getLastPeriodAmount\n\nUse the last period's actual spend as the budget for the present period.\n\nLastPeriodAmount can only be set when the budget's time period is a\n[Filter.calendar_period](/php/docs/reference/cloud-billing-budgets/latest/V1.Filter#_Google_Cloud_Billing_Budgets_V1_Filter__getCalendarPeriod__).\nIt cannot be set in combination with\n[Filter.custom_period](/php/docs/reference/cloud-billing-budgets/latest/V1.Filter#_Google_Cloud_Billing_Budgets_V1_Filter__getCustomPeriod__).\n\n### hasLastPeriodAmount\n\n### setLastPeriodAmount\n\nUse the last period's actual spend as the budget for the present period.\n\nLastPeriodAmount can only be set when the budget's time period is a\n[Filter.calendar_period](/php/docs/reference/cloud-billing-budgets/latest/V1.Filter#_Google_Cloud_Billing_Budgets_V1_Filter__getCalendarPeriod__).\nIt cannot be set in combination with\n[Filter.custom_period](/php/docs/reference/cloud-billing-budgets/latest/V1.Filter#_Google_Cloud_Billing_Budgets_V1_Filter__getCustomPeriod__).\n\n### getBudgetAmount"]]