AdministrativeCredentials Class
- java.
lang. Object - com.
azure. resourcemanager. networkcloud. models. AdministrativeCredentials
- com.
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 Administrative |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Administrative |
fromJson(JsonReader jsonReader)
Reads an instance of Administrative |
| String |
password()
Get the password property: The password of the administrator of the device used during initialization. |
|
Json |
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. |
|
Administrative |
withPassword(String password)
Set the password property: The password of the administrator of the device used during initialization. |
|
Administrative |
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:
Returns:
Throws:
password
public String password()
Get the password property: The password of the administrator of the device used during initialization.
Returns:
toJson
username
public String username()
Get the username property: The username of the administrator of the device used during initialization.
Returns:
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:
Returns:
withUsername
public AdministrativeCredentials withUsername(String username)
Set the username property: The username of the administrator of the device used during initialization.
Parameters:
Returns: