BasicLoginInformation Class
- java.
lang. Object - com.
azure. resourcemanager. azurearcdata. models. BasicLoginInformation
- com.
Implements
public final class BasicLoginInformation
implements JsonSerializable<BasicLoginInformation>
Username and password for basic login authentication.
Constructor Summary
| Constructor | Description |
|---|---|
| BasicLoginInformation() |
Creates an instance of Basic |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Basic |
fromJson(JsonReader jsonReader)
Reads an instance of Basic |
| String |
password()
Get the password property: Login password. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
username()
Get the username property: Login username. |
| void |
validate()
Validates the instance. |
|
Basic |
withPassword(String password)
Set the password property: Login password. |
|
Basic |
withUsername(String username)
Set the username property: Login username. |
Methods inherited from java.lang.Object
Constructor Details
BasicLoginInformation
public BasicLoginInformation()
Creates an instance of BasicLoginInformation class.
Method Details
fromJson
public static BasicLoginInformation fromJson(JsonReader jsonReader)
Reads an instance of BasicLoginInformation from the JsonReader.
Parameters:
Returns:
Throws:
password
public String password()
Get the password property: Login password.
Returns:
toJson
username
public String username()
Get the username property: Login username.
Returns:
validate
public void validate()
Validates the instance.
withPassword
public BasicLoginInformation withPassword(String password)
Set the password property: Login password.
Parameters:
Returns:
withUsername
public BasicLoginInformation withUsername(String username)
Set the username property: Login username.
Parameters:
Returns: