Class JobCredentialInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.sql.fluent.models.JobCredentialInner
-
public class JobCredentialInner extends com.azure.core.management.ProxyResourceA stored credential that can be used by a job to connect to target databases.
-
-
Constructor Summary
Constructors Constructor Description JobCredentialInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringpassword()Get the password property: The credential password.Stringusername()Get the username property: The credential user name.voidvalidate()Validates the instance.JobCredentialInnerwithPassword(String password)Set the password property: The credential password.JobCredentialInnerwithUsername(String username)Set the username property: The credential user name.
-
-
-
Method Detail
-
username
public String username()
Get the username property: The credential user name.- Returns:
- the username value.
-
withUsername
public JobCredentialInner withUsername(String username)
Set the username property: The credential user name.- Parameters:
username- the username value to set.- Returns:
- the JobCredentialInner object itself.
-
password
public String password()
Get the password property: The credential password.- Returns:
- the password value.
-
withPassword
public JobCredentialInner withPassword(String password)
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.
-
-