GuestCredential Class
- java.
lang. Object - com.
azure. resourcemanager. scvmm. models. GuestCredential
- com.
Implements
public final class GuestCredential
implements JsonSerializable<GuestCredential>
Username / Password Credentials to connect to guest.
Constructor Summary
| Constructor | Description |
|---|---|
| GuestCredential() |
Creates an instance of Guest |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Guest |
fromJson(JsonReader jsonReader)
Reads an instance of Guest |
| String |
password()
Get the password property: Gets or sets the password to connect with the guest. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
username()
Get the username property: Gets or sets username to connect with the guest. |
| void |
validate()
Validates the instance. |
|
Guest |
withPassword(String password)
Set the password property: Gets or sets the password to connect with the guest. |
|
Guest |
withUsername(String username)
Set the username property: Gets or sets username to connect with the guest. |
Methods inherited from java.lang.Object
Constructor Details
GuestCredential
public GuestCredential()
Creates an instance of GuestCredential class.
Method Details
fromJson
public static GuestCredential fromJson(JsonReader jsonReader)
Reads an instance of GuestCredential from the JsonReader.
Parameters:
Returns:
Throws:
password
public String password()
Get the password property: Gets or sets the password to connect with the guest.
Returns:
toJson
username
public String username()
Get the username property: Gets or sets username to connect with the guest.
Returns:
validate
public void validate()
Validates the instance.
withPassword
public GuestCredential withPassword(String password)
Set the password property: Gets or sets the password to connect with the guest.
Parameters:
Returns:
withUsername
public GuestCredential withUsername(String username)
Set the username property: Gets or sets username to connect with the guest.
Parameters:
Returns: