Class EstimatedVMPrices
java.lang.Object
com.azure.resourcemanager.machinelearning.models.EstimatedVMPrices
- All Implemented Interfaces:
com.azure.json.JsonSerializable<EstimatedVMPrices>
public final class EstimatedVMPrices
extends Object
implements com.azure.json.JsonSerializable<EstimatedVMPrices>
The estimated price info for using a VM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the billingCurrency property: Three lettered code specifying the currency of the VM price.static EstimatedVMPricesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of EstimatedVMPrices from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Get the unitOfMeasure property: The unit of time measurement for the specified VM price.voidvalidate()Validates the instance.values()Get the values property: The list of estimated prices for using a VM of a particular OS type, tier, etc.withBillingCurrency(BillingCurrency billingCurrency) Set the billingCurrency property: Three lettered code specifying the currency of the VM price.withUnitOfMeasure(UnitOfMeasure unitOfMeasure) Set the unitOfMeasure property: The unit of time measurement for the specified VM price.withValues(List<EstimatedVMPrice> values) Set the values property: The list of estimated prices for using a VM of a particular OS type, tier, etc.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
-
EstimatedVMPrices
public EstimatedVMPrices()Creates an instance of EstimatedVMPrices class.
-
-
Method Details
-
billingCurrency
Get the billingCurrency property: Three lettered code specifying the currency of the VM price. Example: USD.- Returns:
- the billingCurrency value.
-
withBillingCurrency
Set the billingCurrency property: Three lettered code specifying the currency of the VM price. Example: USD.- Parameters:
billingCurrency- the billingCurrency value to set.- Returns:
- the EstimatedVMPrices object itself.
-
unitOfMeasure
Get the unitOfMeasure property: The unit of time measurement for the specified VM price. Example: OneHour.- Returns:
- the unitOfMeasure value.
-
withUnitOfMeasure
Set the unitOfMeasure property: The unit of time measurement for the specified VM price. Example: OneHour.- Parameters:
unitOfMeasure- the unitOfMeasure value to set.- Returns:
- the EstimatedVMPrices object itself.
-
values
Get the values property: The list of estimated prices for using a VM of a particular OS type, tier, etc.- Returns:
- the values value.
-
withValues
Set the values property: The list of estimated prices for using a VM of a particular OS type, tier, etc.- Parameters:
values- the values value to set.- Returns:
- the EstimatedVMPrices 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<EstimatedVMPrices>- Throws:
IOException
-
fromJson
Reads an instance of EstimatedVMPrices from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of EstimatedVMPrices 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 EstimatedVMPrices.
-