Поделиться через


BasicLoginInformation Class

  • java.lang.Object
    • com.azure.resourcemanager.azurearcdata.models.BasicLoginInformation

Implements

public final class BasicLoginInformation
implements JsonSerializable<BasicLoginInformation>

Username and password for basic login authentication.

Constructor Summary

Constructor Description
BasicLoginInformation()

Creates an instance of BasicLoginInformation class.

Method Summary

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

Reads an instance of BasicLoginInformation from the JsonReader.

String password()

Get the password property: Login password.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: Login username.

void validate()

Validates the instance.

BasicLoginInformation withPassword(String password)

Set the password property: Login password.

BasicLoginInformation 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:

jsonReader - The JsonReader being read.

Returns:

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

password

public String password()

Get the password property: Login password.

Returns:

the password value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: Login username.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withPassword

public BasicLoginInformation withPassword(String password)

Set the password property: Login password.

Parameters:

password - the password value to set.

Returns:

the BasicLoginInformation object itself.

withUsername

public BasicLoginInformation withUsername(String username)

Set the username property: Login username.

Parameters:

username - the username value to set.

Returns:

the BasicLoginInformation object itself.

Applies to