Class VirtualMachineProfile

java.lang.Object
com.azure.resourcemanager.labservices.models.VirtualMachineProfile

public final class VirtualMachineProfile extends Object
The base virtual machine configuration for a lab.
  • Constructor Details

    • VirtualMachineProfile

      public VirtualMachineProfile()
  • Method Details

    • createOption

      public CreateOption createOption()
      Get the createOption property: Indicates what lab virtual machines are created from.
      Returns:
      the createOption value.
    • withCreateOption

      public VirtualMachineProfile withCreateOption(CreateOption createOption)
      Set the createOption property: Indicates what lab virtual machines are created from.
      Parameters:
      createOption - the createOption value to set.
      Returns:
      the VirtualMachineProfile object itself.
    • imageReference

      public ImageReference imageReference()
      Get the imageReference property: The image configuration for lab virtual machines.
      Returns:
      the imageReference value.
    • withImageReference

      public VirtualMachineProfile withImageReference(ImageReference imageReference)
      Set the imageReference property: The image configuration for lab virtual machines.
      Parameters:
      imageReference - the imageReference value to set.
      Returns:
      the VirtualMachineProfile object itself.
    • osType

      public OsType osType()
      Get the osType property: The OS type of the image.
      Returns:
      the osType value.
    • sku

      public Sku sku()
      Get the sku property: The SKU for the lab. Defines the type of virtual machines used in the lab.
      Returns:
      the sku value.
    • withSku

      public VirtualMachineProfile withSku(Sku sku)
      Set the sku property: The SKU for the lab. Defines the type of virtual machines used in the lab.
      Parameters:
      sku - the sku value to set.
      Returns:
      the VirtualMachineProfile object itself.
    • additionalCapabilities

      public VirtualMachineAdditionalCapabilities additionalCapabilities()
      Get the additionalCapabilities property: Additional VM capabilities.
      Returns:
      the additionalCapabilities value.
    • withAdditionalCapabilities

      public VirtualMachineProfile withAdditionalCapabilities(VirtualMachineAdditionalCapabilities additionalCapabilities)
      Set the additionalCapabilities property: Additional VM capabilities.
      Parameters:
      additionalCapabilities - the additionalCapabilities value to set.
      Returns:
      the VirtualMachineProfile object itself.
    • usageQuota

      public Duration usageQuota()
      Get the usageQuota property: The initial quota alloted to each lab user. Must be a time span between 0 and 9999 hours.
      Returns:
      the usageQuota value.
    • withUsageQuota

      public VirtualMachineProfile withUsageQuota(Duration usageQuota)
      Set the usageQuota property: The initial quota alloted to each lab user. Must be a time span between 0 and 9999 hours.
      Parameters:
      usageQuota - the usageQuota value to set.
      Returns:
      the VirtualMachineProfile object itself.
    • useSharedPassword

      public EnableState useSharedPassword()
      Get the useSharedPassword property: Enabling this option will use the same password for all user VMs.
      Returns:
      the useSharedPassword value.
    • withUseSharedPassword

      public VirtualMachineProfile withUseSharedPassword(EnableState useSharedPassword)
      Set the useSharedPassword property: Enabling this option will use the same password for all user VMs.
      Parameters:
      useSharedPassword - the useSharedPassword value to set.
      Returns:
      the VirtualMachineProfile object itself.
    • adminUser

      public Credentials adminUser()
      Get the adminUser property: Credentials for the admin user on the VM.
      Returns:
      the adminUser value.
    • withAdminUser

      public VirtualMachineProfile withAdminUser(Credentials adminUser)
      Set the adminUser property: Credentials for the admin user on the VM.
      Parameters:
      adminUser - the adminUser value to set.
      Returns:
      the VirtualMachineProfile object itself.
    • nonAdminUser

      public Credentials nonAdminUser()
      Get the nonAdminUser property: Credentials for the non-admin user on the VM, if one exists.
      Returns:
      the nonAdminUser value.
    • withNonAdminUser

      public VirtualMachineProfile withNonAdminUser(Credentials nonAdminUser)
      Set the nonAdminUser property: Credentials for the non-admin user on the VM, if one exists.
      Parameters:
      nonAdminUser - the nonAdminUser value to set.
      Returns:
      the VirtualMachineProfile object itself.
    • validate

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