Class RegistryUsage

java.lang.Object
com.azure.resourcemanager.containerregistry.models.RegistryUsage
All Implemented Interfaces:
com.azure.json.JsonSerializable<RegistryUsage>

public final class RegistryUsage extends Object implements com.azure.json.JsonSerializable<RegistryUsage>
The quota usage for a container registry.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the currentValue property: The current value of the usage.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of RegistryUsage from the JsonReader.
    Get the limit property: The limit of the usage.
    Get the name property: The name of the usage.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the unit property: The unit of measurement.
    void
    Validates the instance.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Method Details

    • name

      public String name()
      Get the name property: The name of the usage.
      Returns:
      the name value.
    • limit

      public Long limit()
      Get the limit property: The limit of the usage.
      Returns:
      the limit value.
    • currentValue

      public Long currentValue()
      Get the currentValue property: The current value of the usage.
      Returns:
      the currentValue value.
    • unit

      public RegistryUsageUnit unit()
      Get the unit property: The unit of measurement.
      Returns:
      the unit value.
    • 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<RegistryUsage>
      Throws:
      IOException
    • fromJson

      public static RegistryUsage fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of RegistryUsage from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of RegistryUsage 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 RegistryUsage.