Credentials Class
- java.
lang. Object - com.
azure. resourcemanager. labservices. models. Credentials
- com.
Implements
public final class Credentials
implements JsonSerializable<Credentials>
Credentials for a user on a lab VM.
Constructor Summary
| Constructor | Description |
|---|---|
| Credentials() |
Creates an instance of Credentials class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| static Credentials |
fromJson(JsonReader jsonReader)
Reads an instance of Credentials from the Json |
| String |
password()
Get the password property: The password for the user. |
|
Json |
toJson(JsonWriter jsonWriter) |
| 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. |
Methods inherited from java.lang.Object
Constructor Details
Credentials
public Credentials()
Creates an instance of Credentials class.
Method Details
fromJson
public static Credentials fromJson(JsonReader jsonReader)
Reads an instance of Credentials from the JsonReader.
Parameters:
Returns:
Throws:
password
public String password()
Get the password property: The password for the user. This is required for the TemplateVM createOption.
Returns:
toJson
username
public String username()
Get the username property: The username to use when signing in to lab VMs.
Returns:
validate
public void validate()
Validates the instance.
withPassword
public Credentials withPassword(String password)
Set the password property: The password for the user. This is required for the TemplateVM createOption.
Parameters:
Returns:
withUsername
public Credentials withUsername(String username)
Set the username property: The username to use when signing in to lab VMs.
Parameters:
Returns: