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
ConstructorsConstructorDescriptionCreates an instance of FormulaPropertiesFromVm class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FormulaPropertiesFromVm
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of FormulaPropertiesFromVm from the JsonReader.labVmId()
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
validate()
Validates the instance.withLabVmId
(String labVmId) 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
Get the labVmId property: The identifier of the VM from which a formula is to be created.- Returns:
- the labVmId value.
-
withLabVmId
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
- Specified by:
toJson
in interfacecom.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.
-