JobCredentialInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. resourcemanager. sql. fluent. models. JobCredentialInner
- com.
- com.
public final class JobCredentialInner
extends ProxyResource
A stored credential that can be used by a job to connect to target databases.
Constructor Summary
Constructor | Description |
---|---|
JobCredentialInner() |
Creates an instance of Job |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Job |
fromJson(JsonReader jsonReader)
Reads an instance of Job |
String |
id()
Get the id property: Fully qualified resource Id for the resource. |
String |
name()
Get the name property: The name of the resource. |
String |
password()
Get the password property: The credential password. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
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 ProxyResource
Methods inherited from java.lang.Object
Constructor Details
JobCredentialInner
public JobCredentialInner()
Creates an instance of JobCredentialInner class.
Method Details
fromJson
public static JobCredentialInner fromJson(JsonReader jsonReader)
Reads an instance of JobCredentialInner from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: Fully qualified resource Id for the resource.
Overrides:
JobCredentialInner.id()Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
JobCredentialInner.name()Returns:
password
public String password()
Get the password property: The credential password.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
JobCredentialInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
JobCredentialInner.type()Returns:
username
public String username()
Get the username property: The credential user name.
Returns:
validate
public void validate()
Validates the instance.
withPassword
public JobCredentialInner withPassword(String password)
Set the password property: The credential password.
Parameters:
Returns:
withUsername
public JobCredentialInner withUsername(String username)
Set the username property: The credential user name.
Parameters:
Returns:
Applies to
Azure SDK for Java