ReservationUtilizationAggregates Class

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

Implements

public final class ReservationUtilizationAggregates
implements JsonSerializable<ReservationUtilizationAggregates>

The aggregate values of reservation utilization.

Constructor Summary

Constructor Description
ReservationUtilizationAggregates()

Creates an instance of ReservationUtilizationAggregates class.

Method Summary

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

Reads an instance of ReservationUtilizationAggregates 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

ReservationUtilizationAggregates

public ReservationUtilizationAggregates()

Creates an instance of ReservationUtilizationAggregates class.

Method Details

fromJson

public static ReservationUtilizationAggregates fromJson(JsonReader jsonReader)

Reads an instance of ReservationUtilizationAggregates from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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