Utilization Class

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

Implements

public final class Utilization
implements JsonSerializable<Utilization>

Savings plan utilization.

Constructor Summary

Constructor Description
Utilization()

Creates an instance of Utilization class.

Method Summary

Modifier and Type Method and Description
List<UtilizationAggregates> aggregates()

Get the aggregates property: The array of aggregates of a savings plan's utilization.

static Utilization fromJson(JsonReader jsonReader)

Reads an instance of Utilization from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String trend()

Get the trend property: The trend for a savings plan's utilization.

void validate()

Validates the instance.

Utilization withAggregates(List<UtilizationAggregates> aggregates)

Set the aggregates property: The array of aggregates of a savings plan's utilization.

Methods inherited from java.lang.Object

Constructor Details

Utilization

public Utilization()

Creates an instance of Utilization class.

Method Details

aggregates

public List<UtilizationAggregates> aggregates()

Get the aggregates property: The array of aggregates of a savings plan's utilization.

Returns:

the aggregates value.

fromJson

public static Utilization fromJson(JsonReader jsonReader)

Reads an instance of Utilization from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trend

public String trend()

Get the trend property: The trend for a savings plan's utilization.

Returns:

the trend value.

validate

public void validate()

Validates the instance.

withAggregates

public Utilization withAggregates(List<UtilizationAggregates> aggregates)

Set the aggregates property: The array of aggregates of a savings plan's utilization.

Parameters:

aggregates - the aggregates value to set.

Returns:

the Utilization object itself.

Applies to