Class JobCredentialInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.sql.fluent.models.JobCredentialInner
public final class JobCredentialInner
extends com.azure.core.management.ProxyResource
A stored credential that can be used by a job to connect to target databases.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpassword()Get the password property: The credential password.username()Get the username property: The credential user name.voidvalidate()Validates the instance.withPassword(String password) Set the password property: The credential password.withUsername(String username) Set the username property: The credential user name.Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
JobCredentialInner
public JobCredentialInner()Creates an instance of JobCredentialInner class.
-
-
Method Details
-
username
Get the username property: The credential user name.- Returns:
- the username value.
-
withUsername
Set the username property: The credential user name.- Parameters:
username- the username value to set.- Returns:
- the JobCredentialInner object itself.
-
password
Get the password property: The credential password.- Returns:
- the password value.
-
withPassword
Set the password property: The credential password.- Parameters:
password- the password value to set.- Returns:
- the JobCredentialInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-