VmmCredential Class

  • java.lang.Object
    • com.azure.resourcemanager.scvmm.models.VmmCredential

Implements

public final class VmmCredential
implements JsonSerializable<VmmCredential>

Credentials to connect to VmmServer.

Constructor Summary

Constructor Description
VmmCredential()

Creates an instance of VmmCredential class.

Method Summary

Modifier and Type Method and Description
static VmmCredential fromJson(JsonReader jsonReader)

Reads an instance of VmmCredential from the JsonReader.

String password()

Get the password property: Password to use to connect to VmmServer.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: Username to use to connect to VmmServer.

void validate()

Validates the instance.

VmmCredential withPassword(String password)

Set the password property: Password to use to connect to VmmServer.

VmmCredential withUsername(String username)

Set the username property: Username to use to connect to VmmServer.

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:

jsonReader - The JsonReader being read.

Returns:

An instance of VmmCredential 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 VmmCredential.

password

public String password()

Get the password property: Password to use to connect to VmmServer.

Returns:

the password value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: Username to use to connect to VmmServer.

Returns:

the username value.

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:

password - the password value to set.

Returns:

the VmmCredential object itself.

withUsername

public VmmCredential withUsername(String username)

Set the username property: Username to use to connect to VmmServer.

Parameters:

username - the username value to set.

Returns:

the VmmCredential object itself.

Applies to