Class ComputeVmProperties
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.ComputeVmProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ComputeVmProperties>
public final class ComputeVmProperties
extends Object
implements com.azure.json.JsonSerializable<ComputeVmProperties>
Properties of a virtual machine returned by the Microsoft.Compute API.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dataDiskIds property: Gets data disks blob uri for the virtual machine.Get the dataDisks property: Gets all data disks attached to the virtual machine.static ComputeVmProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ComputeVmProperties from the JsonReader.Get the networkInterfaceId property: Gets the network interface ID of the virtual machine.osDiskId()
Get the osDiskId property: Gets OS disk blob uri for the virtual machine.osType()
Get the osType property: Gets the OS type of the virtual machine.statuses()
Get the statuses property: Gets the statuses of the virtual machine.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.vmSize()
Get the vmSize property: Gets the size of the virtual machine.withDataDiskIds
(List<String> dataDiskIds) Set the dataDiskIds property: Gets data disks blob uri for the virtual machine.withDataDisks
(List<ComputeDataDisk> dataDisks) Set the dataDisks property: Gets all data disks attached to the virtual machine.withNetworkInterfaceId
(String networkInterfaceId) Set the networkInterfaceId property: Gets the network interface ID of the virtual machine.withOsDiskId
(String osDiskId) Set the osDiskId property: Gets OS disk blob uri for the virtual machine.withOsType
(String osType) Set the osType property: Gets the OS type of the virtual machine.withStatuses
(List<ComputeVmInstanceViewStatus> statuses) Set the statuses property: Gets the statuses of the virtual machine.withVmSize
(String vmSize) Set the vmSize property: Gets the size of the virtual machine.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
-
ComputeVmProperties
public ComputeVmProperties()Creates an instance of ComputeVmProperties class.
-
-
Method Details
-
statuses
Get the statuses property: Gets the statuses of the virtual machine.- Returns:
- the statuses value.
-
withStatuses
Set the statuses property: Gets the statuses of the virtual machine.- Parameters:
statuses
- the statuses value to set.- Returns:
- the ComputeVmProperties object itself.
-
osType
Get the osType property: Gets the OS type of the virtual machine.- Returns:
- the osType value.
-
withOsType
Set the osType property: Gets the OS type of the virtual machine.- Parameters:
osType
- the osType value to set.- Returns:
- the ComputeVmProperties object itself.
-
vmSize
Get the vmSize property: Gets the size of the virtual machine.- Returns:
- the vmSize value.
-
withVmSize
Set the vmSize property: Gets the size of the virtual machine.- Parameters:
vmSize
- the vmSize value to set.- Returns:
- the ComputeVmProperties object itself.
-
networkInterfaceId
Get the networkInterfaceId property: Gets the network interface ID of the virtual machine.- Returns:
- the networkInterfaceId value.
-
withNetworkInterfaceId
Set the networkInterfaceId property: Gets the network interface ID of the virtual machine.- Parameters:
networkInterfaceId
- the networkInterfaceId value to set.- Returns:
- the ComputeVmProperties object itself.
-
osDiskId
Get the osDiskId property: Gets OS disk blob uri for the virtual machine.- Returns:
- the osDiskId value.
-
withOsDiskId
Set the osDiskId property: Gets OS disk blob uri for the virtual machine.- Parameters:
osDiskId
- the osDiskId value to set.- Returns:
- the ComputeVmProperties object itself.
-
dataDiskIds
Get the dataDiskIds property: Gets data disks blob uri for the virtual machine.- Returns:
- the dataDiskIds value.
-
withDataDiskIds
Set the dataDiskIds property: Gets data disks blob uri for the virtual machine.- Parameters:
dataDiskIds
- the dataDiskIds value to set.- Returns:
- the ComputeVmProperties object itself.
-
dataDisks
Get the dataDisks property: Gets all data disks attached to the virtual machine.- Returns:
- the dataDisks value.
-
withDataDisks
Set the dataDisks property: Gets all data disks attached to the virtual machine.- Parameters:
dataDisks
- the dataDisks value to set.- Returns:
- the ComputeVmProperties 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<ComputeVmProperties>
- Throws:
IOException
-
fromJson
Reads an instance of ComputeVmProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ComputeVmProperties 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 ComputeVmProperties.
-