JobCredentialProperties Class
- java.
lang. Object - com.
azure. resourcemanager. sql. fluent. models. JobCredentialProperties
- com.
Implements
public final class JobCredentialProperties
implements JsonSerializable<JobCredentialProperties>
Properties of a job credential.
Constructor Summary
| Constructor | Description |
|---|---|
| JobCredentialProperties() |
Creates an instance of Job |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Job |
fromJson(JsonReader jsonReader)
Reads an instance of Job |
| String |
password()
Get the password property: The credential password. |
|
Json |
toJson(JsonWriter jsonWriter) |
| String |
username()
Get the username property: The credential user name. |
| void |
validate()
Validates the instance. |
|
Job |
withPassword(String password)
Set the password property: The credential password. |
|
Job |
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:
Returns:
Throws:
password
public String password()
Get the password property: The credential password.
Returns:
toJson
username
public String username()
Get the username property: The credential user name.
Returns:
validate
public void validate()
Validates the instance.
withPassword
public JobCredentialProperties withPassword(String password)
Set the password property: The credential password.
Parameters:
Returns:
withUsername
public JobCredentialProperties withUsername(String username)
Set the username property: The credential user name.
Parameters:
Returns: