次の方法で共有


VICredential Class

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

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 JsonReader.

String password()

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

JsonWriter toJson(JsonWriter jsonWriter)
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()

Creates an instance of VICredential class.

Method Details

fromJson

public static VICredential fromJson(JsonReader jsonReader)

Reads an instance of VICredential from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VICredential if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the VICredential.

password

public String password()

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

Returns:

the password value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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