CmdkeySetup Class

public final class CmdkeySetup
extends CustomSetupBase

The custom setup of running cmdkey commands.

Constructor Summary

Constructor Description
CmdkeySetup()

Creates an instance of CmdkeySetup class.

Method Summary

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

Reads an instance of CmdkeySetup from the JsonReader.

SecretBase password()

Get the password property: The password of data source access.

Object targetName()

Get the targetName property: The server name of data source access.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of custom setup.

Object username()

Get the username property: The user name of data source access.

void validate()

Validates the instance.

CmdkeySetup withPassword(SecretBase password)

Set the password property: The password of data source access.

CmdkeySetup withTargetName(Object targetName)

Set the targetName property: The server name of data source access.

CmdkeySetup withUsername(Object username)

Set the username property: The user name of data source access.

Methods inherited from CustomSetupBase

Methods inherited from java.lang.Object

Constructor Details

CmdkeySetup

public CmdkeySetup()

Creates an instance of CmdkeySetup class.

Method Details

fromJson

public static CmdkeySetup fromJson(JsonReader jsonReader)

Reads an instance of CmdkeySetup from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

password

public SecretBase password()

Get the password property: The password of data source access.

Returns:

the password value.

targetName

public Object targetName()

Get the targetName property: The server name of data source access.

Returns:

the targetName value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

CmdkeySetup.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of custom setup.

Overrides:

CmdkeySetup.type()

Returns:

the type value.

username

public Object username()

Get the username property: The user name of data source access.

Returns:

the username value.

validate

public void validate()

Validates the instance.

Overrides:

CmdkeySetup.validate()

withPassword

public CmdkeySetup withPassword(SecretBase password)

Set the password property: The password of data source access.

Parameters:

password - the password value to set.

Returns:

the CmdkeySetup object itself.

withTargetName

public CmdkeySetup withTargetName(Object targetName)

Set the targetName property: The server name of data source access.

Parameters:

targetName - the targetName value to set.

Returns:

the CmdkeySetup object itself.

withUsername

public CmdkeySetup withUsername(Object username)

Set the username property: The user name of data source access.

Parameters:

username - the username value to set.

Returns:

the CmdkeySetup object itself.

Applies to