Class CapabilitiesCapabilities

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

public final class CapabilitiesCapabilities extends Object implements com.azure.json.JsonSerializable<CapabilitiesCapabilities>
The supported capabilities.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of CapabilitiesCapabilities from the JsonReader.
    Get the maxCpu property: The maximum allowed CPU request in cores.
    Get the maxGpuCount property: The maximum allowed GPU count.
    Get the maxMemoryInGB property: The maximum allowed memory request in GB.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.

    Methods inherited from class java.lang.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

    • CapabilitiesCapabilities

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

    • maxMemoryInGB

      public Float maxMemoryInGB()
      Get the maxMemoryInGB property: The maximum allowed memory request in GB.
      Returns:
      the maxMemoryInGB value.
    • maxCpu

      public Float maxCpu()
      Get the maxCpu property: The maximum allowed CPU request in cores.
      Returns:
      the maxCpu value.
    • maxGpuCount

      public Float maxGpuCount()
      Get the maxGpuCount property: The maximum allowed GPU count.
      Returns:
      the maxGpuCount 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<CapabilitiesCapabilities>
      Throws:
      IOException
    • fromJson

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