Share via


JobCredentialProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.sql.fluent.models.JobCredentialProperties

Implements

public final class JobCredentialProperties
implements JsonSerializable<JobCredentialProperties>

Properties of a job credential.

Constructor Summary

Constructor Description
JobCredentialProperties()

Creates an instance of JobCredentialProperties class.

Method Summary

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

Reads an instance of JobCredentialProperties from the JsonReader.

String password()

Get the password property: The credential password.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: The credential user name.

void validate()

Validates the instance.

JobCredentialProperties withPassword(String password)

Set the password property: The credential password.

JobCredentialProperties withUsername(String username)

Set the username property: The credential user name.

Methods inherited from java.lang.Object

Constructor Details

JobCredentialProperties

public JobCredentialProperties()

Creates an instance of JobCredentialProperties class.

Method Details

fromJson

public static JobCredentialProperties fromJson(JsonReader jsonReader)

Reads an instance of JobCredentialProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of JobCredentialProperties 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 credential password.

Returns:

the password value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: The credential user name.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withPassword

public JobCredentialProperties withPassword(String password)

Set the password property: The credential password.

Parameters:

password - the password value to set.

Returns:

the JobCredentialProperties object itself.

withUsername

public JobCredentialProperties withUsername(String username)

Set the username property: The credential user name.

Parameters:

username - the username value to set.

Returns:

the JobCredentialProperties object itself.

Applies to