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 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

      public EstimatedVMPrice withRetailPrice(double retailPrice)
      Set the retailPrice property: The price charged for using the VM.
      Parameters:
      retailPrice - the retailPrice value to set.
      Returns:
      the EstimatedVMPrice object itself.
    • osType

      public VMPriceOSType osType()
      Get the osType property: Operating system type used by the VM.
      Returns:
      the osType value.
    • withOsType

      public EstimatedVMPrice withOsType(VMPriceOSType osType)
      Set the osType property: Operating system type used by the VM.
      Parameters:
      osType - the osType value to set.
      Returns:
      the EstimatedVMPrice object itself.
    • vmTier

      public VMTier vmTier()
      Get the vmTier property: The type of the VM.
      Returns:
      the vmTier value.
    • withVmTier

      public EstimatedVMPrice withVmTier(VMTier vmTier)
      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

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

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