Class VirtualMachineSize

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

public final class VirtualMachineSize extends Object implements com.azure.json.JsonSerializable<VirtualMachineSize>
Describes the properties of a VM size.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    Get the estimatedVMPrices property: The estimated price information for using a VM.
    Get the family property: The family name of the virtual machine size.
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of VirtualMachineSize from the JsonReader.
    Get the gpus property: The number of gPUs supported by the virtual machine size.
    Get the lowPriorityCapable property: Specifies if the virtual machine size supports low priority VMs.
    Get the maxResourceVolumeMB property: The resource volume size, in MB, allowed by the virtual machine size.
    Get the memoryGB property: The amount of memory, in GB, supported by the virtual machine size.
    Get the name property: The name of the virtual machine size.
    Get the osVhdSizeMB property: The OS VHD disk size, in MB, allowed by the virtual machine size.
    Get the premiumIO property: Specifies if the virtual machine size supports premium IO.
    Get the supportedComputeTypes property: Specifies the compute types supported by the virtual machine size.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Get the vCPUs property: The number of vCPUs supported by the virtual machine size.
    Set the estimatedVMPrices property: The estimated price information for using a VM.
    withSupportedComputeTypes(List<String> supportedComputeTypes)
    Set the supportedComputeTypes property: Specifies the compute types supported by the virtual machine size.

    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

    • VirtualMachineSize

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

    • name

      public String name()
      Get the name property: The name of the virtual machine size.
      Returns:
      the name value.
    • family

      public String family()
      Get the family property: The family name of the virtual machine size.
      Returns:
      the family value.
    • vCPUs

      public Integer vCPUs()
      Get the vCPUs property: The number of vCPUs supported by the virtual machine size.
      Returns:
      the vCPUs value.
    • gpus

      public Integer gpus()
      Get the gpus property: The number of gPUs supported by the virtual machine size.
      Returns:
      the gpus value.
    • osVhdSizeMB

      public Integer osVhdSizeMB()
      Get the osVhdSizeMB property: The OS VHD disk size, in MB, allowed by the virtual machine size.
      Returns:
      the osVhdSizeMB value.
    • maxResourceVolumeMB

      public Integer maxResourceVolumeMB()
      Get the maxResourceVolumeMB property: The resource volume size, in MB, allowed by the virtual machine size.
      Returns:
      the maxResourceVolumeMB value.
    • memoryGB

      public Double memoryGB()
      Get the memoryGB property: The amount of memory, in GB, supported by the virtual machine size.
      Returns:
      the memoryGB value.
    • lowPriorityCapable

      public Boolean lowPriorityCapable()
      Get the lowPriorityCapable property: Specifies if the virtual machine size supports low priority VMs.
      Returns:
      the lowPriorityCapable value.
    • premiumIO

      public Boolean premiumIO()
      Get the premiumIO property: Specifies if the virtual machine size supports premium IO.
      Returns:
      the premiumIO value.
    • estimatedVMPrices

      public EstimatedVMPrices estimatedVMPrices()
      Get the estimatedVMPrices property: The estimated price information for using a VM.
      Returns:
      the estimatedVMPrices value.
    • withEstimatedVMPrices

      public VirtualMachineSize withEstimatedVMPrices(EstimatedVMPrices estimatedVMPrices)
      Set the estimatedVMPrices property: The estimated price information for using a VM.
      Parameters:
      estimatedVMPrices - the estimatedVMPrices value to set.
      Returns:
      the VirtualMachineSize object itself.
    • supportedComputeTypes

      public List<String> supportedComputeTypes()
      Get the supportedComputeTypes property: Specifies the compute types supported by the virtual machine size.
      Returns:
      the supportedComputeTypes value.
    • withSupportedComputeTypes

      public VirtualMachineSize withSupportedComputeTypes(List<String> supportedComputeTypes)
      Set the supportedComputeTypes property: Specifies the compute types supported by the virtual machine size.
      Parameters:
      supportedComputeTypes - the supportedComputeTypes value to set.
      Returns:
      the VirtualMachineSize 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<VirtualMachineSize>
      Throws:
      IOException
    • fromJson

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