BudgetInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. consumption. fluent. models. BudgetInner
- com.
- com.
public final class BudgetInner
extends ProxyResource
A budget resource.
Constructor Summary
| Constructor | Description |
|---|---|
| BudgetInner() |
Creates an instance of Budget |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Big |
amount()
Get the amount property: The total amount of cost to track with the budget. |
|
Category |
category()
Get the category property: The category of the budget, whether the budget tracks cost or usage. |
|
Current |
currentSpend()
Get the current |
| String |
etag()
Get the etag property: e |
|
Budget |
filter()
Get the filter property: May be used to filter budgets by user-specified dimensions and/or tags. |
|
Forecast |
forecastSpend()
Get the forecast |
|
static
Budget |
fromJson(JsonReader jsonReader)
Reads an instance of Budget |
| String |
id()
Get the id property: Fully qualified resource Id for the resource. |
| String |
name()
Get the name property: The name of the resource. |
| Map<String,Notification> |
notifications()
Get the notifications property: Dictionary of notifications associated with the budget. |
|
Time |
timeGrain()
Get the time |
|
Budget |
timePeriod()
Get the time |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
type()
Get the type property: The type of the resource. |
| void |
validate()
Validates the instance. |
|
Budget |
withAmount(BigDecimal amount)
Set the amount property: The total amount of cost to track with the budget. |
|
Budget |
withCategory(CategoryType category)
Set the category property: The category of the budget, whether the budget tracks cost or usage. |
|
Budget |
withEtag(String etag)
Set the etag property: e |
|
Budget |
withFilter(BudgetFilter filter)
Set the filter property: May be used to filter budgets by user-specified dimensions and/or tags. |
|
Budget |
withNotifications(Map<String,Notification> notifications)
Set the notifications property: Dictionary of notifications associated with the budget. |
|
Budget |
withTimeGrain(TimeGrainType timeGrain)
Set the time |
|
Budget |
withTimePeriod(BudgetTimePeriod timePeriod)
Set the time |
Methods inherited from ProxyResource
Methods inherited from java.lang.Object
Constructor Details
BudgetInner
public BudgetInner()
Creates an instance of BudgetInner class.
Method Details
amount
public BigDecimal amount()
Get the amount property: The total amount of cost to track with the budget.
Returns:
category
public CategoryType category()
Get the category property: The category of the budget, whether the budget tracks cost or usage.
Returns:
currentSpend
public CurrentSpend currentSpend()
Get the currentSpend property: The current amount of cost which is being tracked for a budget.
Returns:
etag
public String etag()
Get the etag property: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
Returns:
filter
public BudgetFilter filter()
Get the filter property: May be used to filter budgets by user-specified dimensions and/or tags.
Returns:
forecastSpend
public ForecastSpend forecastSpend()
Get the forecastSpend property: The forecasted cost which is being tracked for a budget.
Returns:
fromJson
public static BudgetInner fromJson(JsonReader jsonReader)
Reads an instance of BudgetInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
BudgetInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
BudgetInner.name()Returns:
notifications
public Map<String,Notification> notifications()
Get the notifications property: Dictionary of notifications associated with the budget. Budget can have up to five notifications.
Returns:
timeGrain
public TimeGrainType timeGrain()
Get the timeGrain property: The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers.
Returns:
timePeriod
public BudgetTimePeriod timePeriod()
Get the timePeriod property: Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
BudgetInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
BudgetInner.type()Returns:
validate
public void validate()
Validates the instance.
withAmount
public BudgetInner withAmount(BigDecimal amount)
Set the amount property: The total amount of cost to track with the budget.
Parameters:
Returns:
withCategory
public BudgetInner withCategory(CategoryType category)
Set the category property: The category of the budget, whether the budget tracks cost or usage.
Parameters:
Returns:
withEtag
public BudgetInner withEtag(String etag)
Set the etag property: eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not.
Parameters:
Returns:
withFilter
public BudgetInner withFilter(BudgetFilter filter)
Set the filter property: May be used to filter budgets by user-specified dimensions and/or tags.
Parameters:
Returns:
withNotifications
public BudgetInner withNotifications(Map<String,Notification> notifications)
Set the notifications property: Dictionary of notifications associated with the budget. Budget can have up to five notifications.
Parameters:
Returns:
withTimeGrain
public BudgetInner withTimeGrain(TimeGrainType timeGrain)
Set the timeGrain property: The time covered by a budget. Tracking of the amount will be reset based on the time grain. BillingMonth, BillingQuarter, and BillingAnnual are only supported by WD customers.
Parameters:
Returns:
withTimePeriod
public BudgetInner withTimePeriod(BudgetTimePeriod timePeriod)
Set the timePeriod property: Has start and end date of the budget. The start date must be first of the month and should be less than the end date. Budget start date must be on or after June 1, 2017. Future start date should not be more than twelve months. Past start date should be selected within the timegrain period. There are no restrictions on the end date.
Parameters:
Returns: