UtilizationAggregates Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.UtilizationAggregates

Implements

public final class UtilizationAggregates
implements JsonSerializable<UtilizationAggregates>

The aggregate values of savings plan utilization.

Constructor Summary

Constructor Description
UtilizationAggregates()

Creates an instance of UtilizationAggregates class.

Method Summary

Modifier and Type Method and Description
static UtilizationAggregates fromJson(JsonReader jsonReader)

Reads an instance of UtilizationAggregates from the JsonReader.

Float grain()

Get the grain property: The grain of the aggregate.

String grainUnit()

Get the grainUnit property: The grain unit of the aggregate.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Float value()

Get the value property: The aggregate value.

String valueUnit()

Get the valueUnit property: The aggregate value unit.

Methods inherited from java.lang.Object

Constructor Details

UtilizationAggregates

public UtilizationAggregates()

Creates an instance of UtilizationAggregates class.

Method Details

fromJson

public static UtilizationAggregates fromJson(JsonReader jsonReader)

Reads an instance of UtilizationAggregates from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of UtilizationAggregates 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 UtilizationAggregates.

grain

public Float grain()

Get the grain property: The grain of the aggregate.

Returns:

the grain value.

grainUnit

public String grainUnit()

Get the grainUnit property: The grain unit of the aggregate.

Returns:

the grainUnit value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public Float value()

Get the value property: The aggregate value.

Returns:

the value value.

valueUnit

public String valueUnit()

Get the valueUnit property: The aggregate value unit.

Returns:

the valueUnit value.

Applies to