Class VICredential
java.lang.Object
com.azure.resourcemanager.connectedvmware.models.VICredential
Username / Password Credentials to connect to vcenter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpassword()
Get the password property: Gets or sets the password to connect with the vCenter.username()
Get the username property: Gets or sets username to connect with the vCenter.void
validate()
Validates the instance.withPassword
(String password) Set the password property: Gets or sets the password to connect with the vCenter.withUsername
(String username) Set the username property: Gets or sets username to connect with the vCenter.
-
Constructor Details
-
VICredential
public VICredential()
-
-
Method Details
-
username
Get the username property: Gets or sets username to connect with the vCenter.- Returns:
- the username value.
-
withUsername
Set the username property: Gets or sets username to connect with the vCenter.- Parameters:
username
- the username value to set.- Returns:
- the VICredential object itself.
-
password
Get the password property: Gets or sets the password to connect with the vCenter.- Returns:
- the password value.
-
withPassword
Set the password property: Gets or sets the password to connect with the vCenter.- Parameters:
password
- the password value to set.- Returns:
- the VICredential object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-