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 -
Method Summary
Modifier and TypeMethodDescriptionGet the estimatedVMPrices property: The estimated price information for using a VM.family()Get the family property: The family name of the virtual machine size.static VirtualMachineSizefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineSize from the JsonReader.gpus()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.memoryGB()Get the memoryGB property: The amount of memory, in GB, supported by the virtual machine size.name()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.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vCPUs()Get the vCPUs property: The number of vCPUs supported by the virtual machine size.withEstimatedVMPrices(EstimatedVMPrices estimatedVMPrices) 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, waitMethods 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
Get the name property: The name of the virtual machine size.- Returns:
- the name value.
-
family
Get the family property: The family name of the virtual machine size.- Returns:
- the family value.
-
vCPUs
Get the vCPUs property: The number of vCPUs supported by the virtual machine size.- Returns:
- the vCPUs value.
-
gpus
Get the gpus property: The number of gPUs supported by the virtual machine size.- Returns:
- the gpus value.
-
osVhdSizeMB
Get the osVhdSizeMB property: The OS VHD disk size, in MB, allowed by the virtual machine size.- Returns:
- the osVhdSizeMB value.
-
maxResourceVolumeMB
Get the maxResourceVolumeMB property: The resource volume size, in MB, allowed by the virtual machine size.- Returns:
- the maxResourceVolumeMB value.
-
memoryGB
Get the memoryGB property: The amount of memory, in GB, supported by the virtual machine size.- Returns:
- the memoryGB value.
-
lowPriorityCapable
Get the lowPriorityCapable property: Specifies if the virtual machine size supports low priority VMs.- Returns:
- the lowPriorityCapable value.
-
estimatedVMPrices
Get the estimatedVMPrices property: The estimated price information for using a VM.- Returns:
- the estimatedVMPrices value.
-
withEstimatedVMPrices
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
Get the supportedComputeTypes property: Specifies the compute types supported by the virtual machine size.- Returns:
- the supportedComputeTypes value.
-
withSupportedComputeTypes
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualMachineSize>- Throws:
IOException
-
fromJson
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.
-