CurrentSpend Class
- java.
lang. Object - com.
azure. resourcemanager. consumption. models. CurrentSpend
- com.
Implements
public final class CurrentSpend
implements JsonSerializable<CurrentSpend>
The current amount of cost which is being tracked for a budget.
Constructor Summary
Constructor | Description |
---|---|
CurrentSpend() |
Creates an instance of Current |
Method Summary
Modifier and Type | Method and Description |
---|---|
Big |
amount()
Get the amount property: The total amount of cost which is being tracked by the budget. |
static
Current |
fromJson(JsonReader jsonReader)
Reads an instance of Current |
Json |
toJson(JsonWriter jsonWriter) |
String |
unit()
Get the unit property: The unit of measure for the budget amount. |
void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
CurrentSpend
public CurrentSpend()
Creates an instance of CurrentSpend class.
Method Details
amount
public BigDecimal amount()
Get the amount property: The total amount of cost which is being tracked by the budget.
Returns:
fromJson
public static CurrentSpend fromJson(JsonReader jsonReader)
Reads an instance of CurrentSpend from the JsonReader.
Parameters:
Returns:
Throws:
toJson
unit
public String unit()
Get the unit property: The unit of measure for the budget amount.
Returns:
validate
public void validate()
Validates the instance.
Applies to
Azure SDK for Java