Class ContainerMemoryStatistics

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

public final class ContainerMemoryStatistics extends Object implements com.azure.json.JsonSerializable<ContainerMemoryStatistics>
The ContainerMemoryStatistics model.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of ContainerMemoryStatistics from the JsonReader.
    Get the limit property: The limit property.
    Get the maxUsage property: The maxUsage property.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    Get the usage property: The usage property.
    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

    • usage

      public Long usage()
      Get the usage property: The usage property.
      Returns:
      the usage value.
    • maxUsage

      public Long maxUsage()
      Get the maxUsage property: The maxUsage property.
      Returns:
      the maxUsage value.
    • limit

      public Long limit()
      Get the limit property: The limit property.
      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<ContainerMemoryStatistics>
      Throws:
      IOException
    • fromJson

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