Class EstimatedVMPrice
java.lang.Object
com.azure.resourcemanager.machinelearning.models.EstimatedVMPrice
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EstimatedVMPrice>
public final class EstimatedVMPrice
extends Object
implements com.azure.json.JsonSerializable<EstimatedVMPrice>
The estimated price info for using a VM of a particular OS type, tier, etc.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EstimatedVMPricefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EstimatedVMPrice from the JsonReader.osType()Get the osType property: Operating system type used by the VM.doubleGet the retailPrice property: The price charged for using the VM.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.vmTier()Get the vmTier property: The type of the VM.withOsType(VMPriceOSType osType) Set the osType property: Operating system type used by the VM.withRetailPrice(double retailPrice) Set the retailPrice property: The price charged for using the VM.withVmTier(VMTier vmTier) Set the vmTier property: The type of the VM.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
-
EstimatedVMPrice
public EstimatedVMPrice()Creates an instance of EstimatedVMPrice class.
-
-
Method Details
-
retailPrice
public double retailPrice()Get the retailPrice property: The price charged for using the VM.- Returns:
- the retailPrice value.
-
withRetailPrice
Set the retailPrice property: The price charged for using the VM.- Parameters:
retailPrice- the retailPrice value to set.- Returns:
- the EstimatedVMPrice object itself.
-
osType
Get the osType property: Operating system type used by the VM.- Returns:
- the osType value.
-
withOsType
Set the osType property: Operating system type used by the VM.- Parameters:
osType- the osType value to set.- Returns:
- the EstimatedVMPrice object itself.
-
vmTier
Get the vmTier property: The type of the VM.- Returns:
- the vmTier value.
-
withVmTier
Set the vmTier property: The type of the VM.- Parameters:
vmTier- the vmTier value to set.- Returns:
- the EstimatedVMPrice 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<EstimatedVMPrice>- Throws:
IOException
-
fromJson
Reads an instance of EstimatedVMPrice from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EstimatedVMPrice if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the EstimatedVMPrice.
-