Class FormulaPropertiesFromVm

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.FormulaPropertiesFromVm
All Implemented Interfaces:
com.azure.json.JsonSerializable<FormulaPropertiesFromVm>

public final class FormulaPropertiesFromVm extends Object implements com.azure.json.JsonSerializable<FormulaPropertiesFromVm>
Information about a VM from which a formula is to be created.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates an instance of FormulaPropertiesFromVm class.
  • Method Summary

    Modifier and Type
    Method
    Description
    fromJson(com.azure.json.JsonReader jsonReader)
    Reads an instance of FormulaPropertiesFromVm from the JsonReader.
    Get the labVmId property: The identifier of the VM from which a formula is to be created.
    com.azure.json.JsonWriter
    toJson(com.azure.json.JsonWriter jsonWriter)
    void
    Validates the instance.
    Set the labVmId property: The identifier of the VM from which a formula is to be created.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.azure.json.JsonSerializable

    toJson, toJson, toJsonBytes, toJsonString
  • Constructor Details

    • FormulaPropertiesFromVm

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

    • labVmId

      public String labVmId()
      Get the labVmId property: The identifier of the VM from which a formula is to be created.
      Returns:
      the labVmId value.
    • withLabVmId

      public FormulaPropertiesFromVm withLabVmId(String labVmId)
      Set the labVmId property: The identifier of the VM from which a formula is to be created.
      Parameters:
      labVmId - the labVmId value to set.
      Returns:
      the FormulaPropertiesFromVm 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<FormulaPropertiesFromVm>
      Throws:
      IOException
    • fromJson

      public static FormulaPropertiesFromVm fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of FormulaPropertiesFromVm from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of FormulaPropertiesFromVm 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 FormulaPropertiesFromVm.