Class ComputeVmProperties

java.lang.Object
com.azure.resourcemanager.devtestlabs.models.ComputeVmProperties

public final class ComputeVmProperties extends Object
Properties of a virtual machine returned by the Microsoft.Compute API.
  • Constructor Details

    • ComputeVmProperties

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

    • statuses

      public List<ComputeVmInstanceViewStatus> statuses()
      Get the statuses property: Gets the statuses of the virtual machine.
      Returns:
      the statuses value.
    • withStatuses

      public ComputeVmProperties withStatuses(List<ComputeVmInstanceViewStatus> statuses)
      Set the statuses property: Gets the statuses of the virtual machine.
      Parameters:
      statuses - the statuses value to set.
      Returns:
      the ComputeVmProperties object itself.
    • osType

      public String osType()
      Get the osType property: Gets the OS type of the virtual machine.
      Returns:
      the osType value.
    • withOsType

      public ComputeVmProperties withOsType(String osType)
      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

      public String vmSize()
      Get the vmSize property: Gets the size of the virtual machine.
      Returns:
      the vmSize value.
    • withVmSize

      public ComputeVmProperties withVmSize(String vmSize)
      Set the vmSize property: Gets the size of the virtual machine.
      Parameters:
      vmSize - the vmSize value to set.
      Returns:
      the ComputeVmProperties object itself.
    • networkInterfaceId

      public String networkInterfaceId()
      Get the networkInterfaceId property: Gets the network interface ID of the virtual machine.
      Returns:
      the networkInterfaceId value.
    • withNetworkInterfaceId

      public ComputeVmProperties withNetworkInterfaceId(String networkInterfaceId)
      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

      public String osDiskId()
      Get the osDiskId property: Gets OS disk blob uri for the virtual machine.
      Returns:
      the osDiskId value.
    • withOsDiskId

      public ComputeVmProperties withOsDiskId(String osDiskId)
      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

      public List<String> dataDiskIds()
      Get the dataDiskIds property: Gets data disks blob uri for the virtual machine.
      Returns:
      the dataDiskIds value.
    • withDataDiskIds

      public ComputeVmProperties withDataDiskIds(List<String> dataDiskIds)
      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

      public List<ComputeDataDisk> dataDisks()
      Get the dataDisks property: Gets all data disks attached to the virtual machine.
      Returns:
      the dataDisks value.
    • withDataDisks

      public ComputeVmProperties withDataDisks(List<ComputeDataDisk> dataDisks)
      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.