ForecastSpend Class

  • java.lang.Object
    • com.azure.resourcemanager.consumption.models.ForecastSpend

Implements

public final class ForecastSpend
implements JsonSerializable<ForecastSpend>

The forecasted cost which is being tracked for a budget.

Constructor Summary

Constructor Description
ForecastSpend()

Creates an instance of ForecastSpend class.

Method Summary

Modifier and Type Method and Description
BigDecimal amount()

Get the amount property: The forecasted cost for the total time period which is being tracked by the budget.

static ForecastSpend fromJson(JsonReader jsonReader)

Reads an instance of ForecastSpend from the JsonReader.

JsonWriter 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

ForecastSpend

public ForecastSpend()

Creates an instance of ForecastSpend class.

Method Details

amount

public BigDecimal amount()

Get the amount property: The forecasted cost for the total time period which is being tracked by the budget. This value is only provided if the budget contains a forecast alert type.

Returns:

the amount value.

fromJson

public static ForecastSpend fromJson(JsonReader jsonReader)

Reads an instance of ForecastSpend from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ForecastSpend if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ForecastSpend.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

unit

public String unit()

Get the unit property: The unit of measure for the budget amount.

Returns:

the unit value.

validate

public void validate()

Validates the instance.

Applies to