Class Credentials
- java.lang.Object
-
- com.azure.resourcemanager.labservices.models.Credentials
-
public final class Credentials extends Object
Credentials for a user on a lab VM.
-
-
Constructor Summary
Constructors Constructor Description Credentials()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
password()
Get the password property: The password for the user.String
username()
Get the username property: The username to use when signing in to lab VMs.void
validate()
Validates the instance.Credentials
withPassword(String password)
Set the password property: The password for the user.Credentials
withUsername(String username)
Set the username property: The username to use when signing in to lab VMs.
-
-
-
Method Detail
-
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.
-
-