AdministrativeCredentials Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.AdministrativeCredentials

Implements

public final class AdministrativeCredentials
implements JsonSerializable<AdministrativeCredentials>

AdministrativeCredentials represents the admin credentials for the device requiring password-based authentication.

Constructor Summary

Constructor Description
AdministrativeCredentials()

Creates an instance of AdministrativeCredentials class.

Method Summary

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

Reads an instance of AdministrativeCredentials from the JsonReader.

String password()

Get the password property: The password of the administrator of the device used during initialization.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: The username of the administrator of the device used during initialization.

void validate()

Validates the instance.

AdministrativeCredentials withPassword(String password)

Set the password property: The password of the administrator of the device used during initialization.

AdministrativeCredentials withUsername(String username)

Set the username property: The username of the administrator of the device used during initialization.

Methods inherited from java.lang.Object

Constructor Details

AdministrativeCredentials

public AdministrativeCredentials()

Creates an instance of AdministrativeCredentials class.

Method Details

fromJson

public static AdministrativeCredentials fromJson(JsonReader jsonReader)

Reads an instance of AdministrativeCredentials from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of AdministrativeCredentials 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: The password of the administrator of the device used during initialization.

Returns:

the password value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: The username of the administrator of the device used during initialization.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withPassword

public AdministrativeCredentials withPassword(String password)

Set the password property: The password of the administrator of the device used during initialization.

Parameters:

password - the password value to set.

Returns:

the AdministrativeCredentials object itself.

withUsername

public AdministrativeCredentials withUsername(String username)

Set the username property: The username of the administrator of the device used during initialization.

Parameters:

username - the username value to set.

Returns:

the AdministrativeCredentials object itself.

Applies to