Class VirtualMachineConfiguration

java.lang.Object
com.azure.resourcemanager.workloads.models.VirtualMachineConfiguration

public final class VirtualMachineConfiguration extends Object
Defines the virtual machine configuration.
  • Constructor Details

    • VirtualMachineConfiguration

      public VirtualMachineConfiguration()
  • Method Details

    • vmSize

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

      public VirtualMachineConfiguration withVmSize(String vmSize)
      Set the vmSize property: The virtual machine size.
      Parameters:
      vmSize - the vmSize value to set.
      Returns:
      the VirtualMachineConfiguration object itself.
    • imageReference

      public ImageReference imageReference()
      Get the imageReference property: The image reference.
      Returns:
      the imageReference value.
    • withImageReference

      public VirtualMachineConfiguration withImageReference(ImageReference imageReference)
      Set the imageReference property: The image reference.
      Parameters:
      imageReference - the imageReference value to set.
      Returns:
      the VirtualMachineConfiguration object itself.
    • osProfile

      public OSProfile osProfile()
      Get the osProfile property: The OS profile.
      Returns:
      the osProfile value.
    • withOsProfile

      public VirtualMachineConfiguration withOsProfile(OSProfile osProfile)
      Set the osProfile property: The OS profile.
      Parameters:
      osProfile - the osProfile value to set.
      Returns:
      the VirtualMachineConfiguration object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.