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 Details

    • ReservationsPropertiesUtilization

      public ReservationsPropertiesUtilization()
      Creates an instance of ReservationsPropertiesUtilization class.
  • Method Details

    • trend

      public String trend()
      Get the trend property: last 7 day utilization trend for a reservation.
      Returns:
      the trend value.
    • aggregates

      public List<ReservationUtilizationAggregates> aggregates()
      Get the aggregates property: The array of aggregates of a reservation's utilization.
      Returns:
      the aggregates value.
    • withAggregates

      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.