Reference documentation and code samples for the Google Cloud Billing Budgets V1beta1 Client class BudgetAmount.
The budgeted amount for each usage period.
Generated from protobuf message google.cloud.billing.budgets.v1beta1.BudgetAmount
Namespace
Google \ Cloud \ Billing \ Budgets \ V1beta1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description | 
data | 
        
          array
          Optional. Data for populating the Message object.  | 
      
↳ specified_amount | 
        
          Google\Type\Money
          A specified amount to use as the budget.   | 
      
↳ last_period_amount | 
        
          Google\Cloud\Billing\Budgets\V1beta1\LastPeriodAmount
          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. It cannot be set in combination with Filter.custom_period.  | 
      
getSpecifiedAmount
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.
| Returns | |
|---|---|
| Type | Description | 
Google\Type\Money|null | 
        |
hasSpecifiedAmount
setSpecifiedAmount
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.
| Parameter | |
|---|---|
| Name | Description | 
var | 
        
          Google\Type\Money
           | 
      
| Returns | |
|---|---|
| Type | Description | 
$this | 
        |
getLastPeriodAmount
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. It cannot be set in combination with Filter.custom_period.
| Returns | |
|---|---|
| Type | Description | 
Google\Cloud\Billing\Budgets\V1beta1\LastPeriodAmount|null | 
        |
hasLastPeriodAmount
setLastPeriodAmount
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. It cannot be set in combination with Filter.custom_period.
| Parameter | |
|---|---|
| Name | Description | 
var | 
        
          Google\Cloud\Billing\Budgets\V1beta1\LastPeriodAmount
           | 
      
| Returns | |
|---|---|
| Type | Description | 
$this | 
        |
getBudgetAmount
| Returns | |
|---|---|
| Type | Description | 
string | 
        |