JobCredentialInner Class

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 JobCredentialInner class.

Method Summary

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

Reads an instance of JobCredentialInner from the JsonReader.

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.

JsonWriter 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.

JobCredentialInner withPassword(String password)

Set the password property: The credential password.

JobCredentialInner 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:

jsonReader - The JsonReader being read.

Returns:

An instance of JobCredentialInner 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.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

JobCredentialInner.id()

Returns:

the id value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

JobCredentialInner.name()

Returns:

the name value.

password

public String password()

Get the password property: The credential password.

Returns:

the password value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

JobCredentialInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

JobCredentialInner.type()

Returns:

the type value.

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 JobCredentialInner withPassword(String password)

Set the password property: The credential password.

Parameters:

password - the password value to set.

Returns:

the JobCredentialInner object itself.

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.

Applies to