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 Details

    • EstimatedVMPrices

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

    • billingCurrency

      public BillingCurrency billingCurrency()
      Get the billingCurrency property: Three lettered code specifying the currency of the VM price. Example: USD.
      Returns:
      the billingCurrency value.
    • withBillingCurrency

      public EstimatedVMPrices withBillingCurrency(BillingCurrency billingCurrency)
      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

      public UnitOfMeasure unitOfMeasure()
      Get the unitOfMeasure property: The unit of time measurement for the specified VM price. Example: OneHour.
      Returns:
      the unitOfMeasure value.
    • withUnitOfMeasure

      public EstimatedVMPrices withUnitOfMeasure(UnitOfMeasure unitOfMeasure)
      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

      public List<EstimatedVMPrice> 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

      public EstimatedVMPrices withValues(List<EstimatedVMPrice> values)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<EstimatedVMPrices>
      Throws:
      IOException
    • fromJson

      public static EstimatedVMPrices fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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.