Class VirtualMachineSize


  • public final class VirtualMachineSize
    extends Object
    Describes the properties of a VM size.
    • Constructor Detail

      • VirtualMachineSize

        public VirtualMachineSize()
    • Method Detail

      • name

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

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

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

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

        public Integer osVhdSizeMB()
        Get the osVhdSizeMB property: OS VHD Disk size 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: Resource volume size The resource volume size, in MB, allowed by the virtual machine size.
        Returns:
        the maxResourceVolumeMB value.
      • memoryGB

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

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

        public Boolean premiumIO()
        Get the premiumIO property: Premium IO supported 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: Supported Compute Types 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: Supported Compute Types 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.