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

public final class Credentials extends Object
Credentials for a user on a lab VM.
  • Constructor Details

    • Credentials

      public Credentials()
  • Method Details

    • username

      public String username()
      Get the username property: The username to use when signing in to lab VMs.
      Returns:
      the username value.
    • withUsername

      public Credentials withUsername(String username)
      Set the username property: The username to use when signing in to lab VMs.
      Parameters:
      username - the username value to set.
      Returns:
      the Credentials object itself.
    • password

      public String password()
      Get the password property: The password for the user. This is required for the TemplateVM createOption.
      Returns:
      the password value.
    • withPassword

      public Credentials withPassword(String password)
      Set the password property: The password for the user. This is required for the TemplateVM createOption.
      Parameters:
      password - the password value to set.
      Returns:
      the Credentials object itself.
    • validate

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