Class ComputeVmProperties
java.lang.Object
com.azure.resourcemanager.devtestlabs.models.ComputeVmProperties
Properties of a virtual machine returned by the Microsoft.Compute API.
-
Constructor Summary
-
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.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.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.
-
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.
-