VICredential Class

  • java.lang.Object
    • com.azure.resourcemanager.connectedvmware.models.VICredential

public final class VICredential

Username / Password Credentials to connect to vcenter.

Constructor Summary

Constructor Description
VICredential()

Method Summary

Modifier and Type Method and Description
String password()

Get the password property: Gets or sets the password to connect with the vCenter.

String username()

Get the username property: Gets or sets username to connect with the vCenter.

void validate()

Validates the instance.

VICredential withPassword(String password)

Set the password property: Gets or sets the password to connect with the vCenter.

VICredential withUsername(String username)

Set the username property: Gets or sets username to connect with the vCenter.

Methods inherited from java.lang.Object

Constructor Details

VICredential

public VICredential()

Method Details

password

public String password()

Get the password property: Gets or sets the password to connect with the vCenter.

Returns:

the password value.

username

public String username()

Get the username property: Gets or sets username to connect with the vCenter.

Returns:

the username value.

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:

password - the password value to set.

Returns:

the VICredential object itself.

withUsername

public VICredential withUsername(String username)

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.

Applies to