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.
  • Constructor Details

    • ContainerMemoryStatistics

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

    • usage

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

      public ContainerMemoryStatistics withUsage(Long usage)
      Set the usage property: The usage property.
      Parameters:
      usage - the usage value to set.
      Returns:
      the ContainerMemoryStatistics object itself.
    • maxUsage

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

      public ContainerMemoryStatistics withMaxUsage(Long maxUsage)
      Set the maxUsage property: The maxUsage property.
      Parameters:
      maxUsage - the maxUsage value to set.
      Returns:
      the ContainerMemoryStatistics object itself.
    • limit

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

      public ContainerMemoryStatistics withLimit(Long limit)
      Set the limit property: The limit property.
      Parameters:
      limit - the limit value to set.
      Returns:
      the ContainerMemoryStatistics 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<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.