Class ReservationsPropertiesUtilization
java.lang.Object
com.azure.resourcemanager.reservations.models.ReservationsPropertiesUtilization
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ReservationsPropertiesUtilization>
public final class ReservationsPropertiesUtilization
extends Object
implements com.azure.json.JsonSerializable<ReservationsPropertiesUtilization>
Reservation utilization.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ReservationsPropertiesUtilization class. -
Method Summary
Modifier and TypeMethodDescriptionGet the aggregates property: The array of aggregates of a reservation's utilization.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ReservationsPropertiesUtilization from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) trend()
Get the trend property: last 7 day utilization trend for a reservation.void
validate()
Validates the instance.withAggregates
(List<ReservationUtilizationAggregates> aggregates) Set the aggregates property: The array of aggregates of a reservation's utilization.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ReservationsPropertiesUtilization
public ReservationsPropertiesUtilization()Creates an instance of ReservationsPropertiesUtilization class.
-
-
Method Details
-
trend
Get the trend property: last 7 day utilization trend for a reservation.- Returns:
- the trend value.
-
aggregates
Get the aggregates property: The array of aggregates of a reservation's utilization.- Returns:
- the aggregates value.
-
withAggregates
public ReservationsPropertiesUtilization withAggregates(List<ReservationUtilizationAggregates> aggregates) Set the aggregates property: The array of aggregates of a reservation's utilization.- Parameters:
aggregates
- the aggregates value to set.- Returns:
- the ReservationsPropertiesUtilization object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ReservationsPropertiesUtilization>
- Throws:
IOException
-
fromJson
public static ReservationsPropertiesUtilization fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ReservationsPropertiesUtilization from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ReservationsPropertiesUtilization 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 ReservationsPropertiesUtilization.
-