GuestCredential Class

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

Implements

public final class GuestCredential
implements JsonSerializable<GuestCredential>

Username / Password Credentials to connect to guest.

Constructor Summary

Constructor Description
GuestCredential()

Creates an instance of GuestCredential class.

Method Summary

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

Reads an instance of GuestCredential from the JsonReader.

String password()

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

JsonWriter toJson(JsonWriter jsonWriter)
String username()

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

void validate()

Validates the instance.

GuestCredential withPassword(String password)

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

GuestCredential withUsername(String username)

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

Methods inherited from java.lang.Object

Constructor Details

GuestCredential

public GuestCredential()

Creates an instance of GuestCredential class.

Method Details

fromJson

public static GuestCredential fromJson(JsonReader jsonReader)

Reads an instance of GuestCredential from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

password

public String password()

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

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

Returns:

the username value.

validate

public void validate()

Validates the instance.

withPassword

public GuestCredential withPassword(String password)

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

Parameters:

password - the password value to set.

Returns:

the GuestCredential object itself.

withUsername

public GuestCredential withUsername(String username)

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

Parameters:

username - the username value to set.

Returns:

the GuestCredential object itself.

Applies to