Class Credentials
java.lang.Object
com.azure.resourcemanager.labservices.models.Credentials
Credentials for a user on a lab VM.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpassword()
Get the password property: The password for the user.username()
Get the username property: The username to use when signing in to lab VMs.void
validate()
Validates the instance.withPassword
(String password) Set the password property: The password for the user.withUsername
(String username) Set the username property: The username to use when signing in to lab VMs.
-
Constructor Details
-
Credentials
public Credentials()
-
-
Method Details
-
username
Get the username property: The username to use when signing in to lab VMs.- Returns:
- the username value.
-
withUsername
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
Get the password property: The password for the user. This is required for the TemplateVM createOption.- Returns:
- the password value.
-
withPassword
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.
-