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