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