Class SupportedCapabilities

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

public final class SupportedCapabilities extends Object implements com.azure.json.JsonSerializable<SupportedCapabilities>
List of supported capabilities persisted on the disk resource for VM use.
  • Constructor Details

    • SupportedCapabilities

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

    • diskControllerTypes

      public String diskControllerTypes()
      Get the diskControllerTypes property: The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.
      Returns:
      the diskControllerTypes value.
    • withDiskControllerTypes

      public SupportedCapabilities withDiskControllerTypes(String diskControllerTypes)
      Set the diskControllerTypes property: The disk controllers that an OS disk supports. If set it can be SCSI or SCSI, NVME or NVME, SCSI.
      Parameters:
      diskControllerTypes - the diskControllerTypes value to set.
      Returns:
      the SupportedCapabilities object itself.
    • acceleratedNetwork

      public Boolean acceleratedNetwork()
      Get the acceleratedNetwork property: True if the image from which the OS disk is created supports accelerated networking.
      Returns:
      the acceleratedNetwork value.
    • withAcceleratedNetwork

      public SupportedCapabilities withAcceleratedNetwork(Boolean acceleratedNetwork)
      Set the acceleratedNetwork property: True if the image from which the OS disk is created supports accelerated networking.
      Parameters:
      acceleratedNetwork - the acceleratedNetwork value to set.
      Returns:
      the SupportedCapabilities object itself.
    • architecture

      public Architecture architecture()
      Get the architecture property: CPU architecture supported by an OS disk.
      Returns:
      the architecture value.
    • withArchitecture

      public SupportedCapabilities withArchitecture(Architecture architecture)
      Set the architecture property: CPU architecture supported by an OS disk.
      Parameters:
      architecture - the architecture value to set.
      Returns:
      the SupportedCapabilities object itself.
    • supportedSecurityOption

      public SupportedSecurityOption supportedSecurityOption()
      Get the supportedSecurityOption property: Refers to the security capability of the disk supported to create a Trusted launch or Confidential VM.
      Returns:
      the supportedSecurityOption value.
    • withSupportedSecurityOption

      public SupportedCapabilities withSupportedSecurityOption(SupportedSecurityOption supportedSecurityOption)
      Set the supportedSecurityOption property: Refers to the security capability of the disk supported to create a Trusted launch or Confidential VM.
      Parameters:
      supportedSecurityOption - the supportedSecurityOption value to set.
      Returns:
      the SupportedCapabilities 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<SupportedCapabilities>
      Throws:
      IOException
    • fromJson

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