Class ResourceUsageInner

java.lang.Object
com.azure.resourcemanager.cdn.fluent.models.ResourceUsageInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceUsageInner>

public final class ResourceUsageInner extends Object implements com.azure.json.JsonSerializable<ResourceUsageInner>
Output of check resource usage API.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of ResourceUsageInner class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the currentValue property: Actual value of usage on the specified resource type.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ResourceUsageInner from the JsonReader.
    Get the limit property: Quota of the specified resource type.
    Get the resourceType property: Resource type for which the usage is provided.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the unit property: Unit of the usage. e.g. count.
    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
  • Constructor Details

    • ResourceUsageInner

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

    • resourceType

      public String resourceType()
      Get the resourceType property: Resource type for which the usage is provided.
      Returns:
      the resourceType value.
    • unit

      public ResourceUsageUnit unit()
      Get the unit property: Unit of the usage. e.g. count.
      Returns:
      the unit value.
    • currentValue

      public Integer currentValue()
      Get the currentValue property: Actual value of usage on the specified resource type.
      Returns:
      the currentValue value.
    • limit

      public Integer limit()
      Get the limit property: Quota of the specified resource type.
      Returns:
      the limit 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<ResourceUsageInner>
      Throws:
      IOException
    • fromJson

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