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

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

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

    Modifier and Type
    Method
    Description
    Get the capabilities property: The supported capabilities.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of Capabilities from the JsonReader.
    gpu()
    Get the gpu property: The GPU sku that this capability describes.
    Get the ipAddressType property: The ip address type that this capability describes.
    Get the location property: The resource location.
    Get the osType property: The OS type that this capability describes.
    Get the resourceType property: The resource type that this capability describes.
    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

    • Capabilities

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

    • resourceType

      public String resourceType()
      Get the resourceType property: The resource type that this capability describes.
      Returns:
      the resourceType value.
    • osType

      public String osType()
      Get the osType property: The OS type that this capability describes.
      Returns:
      the osType value.
    • location

      public String location()
      Get the location property: The resource location.
      Returns:
      the location value.
    • ipAddressType

      public String ipAddressType()
      Get the ipAddressType property: The ip address type that this capability describes.
      Returns:
      the ipAddressType value.
    • gpu

      public String gpu()
      Get the gpu property: The GPU sku that this capability describes.
      Returns:
      the gpu value.
    • capabilities

      public CapabilitiesCapabilities capabilities()
      Get the capabilities property: The supported capabilities.
      Returns:
      the capabilities 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<Capabilities>
      Throws:
      IOException
    • fromJson

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