次の方法で共有


SqlConnectionInformation Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.SqlConnectionInformation

Implements

public final class SqlConnectionInformation
implements JsonSerializable<SqlConnectionInformation>

Source SQL Connection.

Constructor Summary

Constructor Description
SqlConnectionInformation()

Creates an instance of SqlConnectionInformation class.

Method Summary

Modifier and Type Method and Description
String authentication()

Get the authentication property: Authentication type.

String dataSource()

Get the dataSource property: Data source.

Boolean encryptConnection()

Get the encryptConnection property: Whether to encrypt connection or not.

static SqlConnectionInformation fromJson(JsonReader jsonReader)

Reads an instance of SqlConnectionInformation from the JsonReader.

String password()

Get the password property: Password to connect to source SQL.

JsonWriter toJson(JsonWriter jsonWriter)
Boolean trustServerCertificate()

Get the trustServerCertificate property: Whether to trust server certificate or not.

String username()

Get the username property: User name to connect to source SQL.

void validate()

Validates the instance.

SqlConnectionInformation withAuthentication(String authentication)

Set the authentication property: Authentication type.

SqlConnectionInformation withDataSource(String dataSource)

Set the dataSource property: Data source.

SqlConnectionInformation withEncryptConnection(Boolean encryptConnection)

Set the encryptConnection property: Whether to encrypt connection or not.

SqlConnectionInformation withPassword(String password)

Set the password property: Password to connect to source SQL.

SqlConnectionInformation withTrustServerCertificate(Boolean trustServerCertificate)

Set the trustServerCertificate property: Whether to trust server certificate or not.

SqlConnectionInformation withUsername(String username)

Set the username property: User name to connect to source SQL.

Methods inherited from java.lang.Object

Constructor Details

SqlConnectionInformation

public SqlConnectionInformation()

Creates an instance of SqlConnectionInformation class.

Method Details

authentication

public String authentication()

Get the authentication property: Authentication type.

Returns:

the authentication value.

dataSource

public String dataSource()

Get the dataSource property: Data source.

Returns:

the dataSource value.

encryptConnection

public Boolean encryptConnection()

Get the encryptConnection property: Whether to encrypt connection or not.

Returns:

the encryptConnection value.

fromJson

public static SqlConnectionInformation fromJson(JsonReader jsonReader)

Reads an instance of SqlConnectionInformation from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SqlConnectionInformation if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SqlConnectionInformation.

password

public String password()

Get the password property: Password to connect to source SQL.

Returns:

the password value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

trustServerCertificate

public Boolean trustServerCertificate()

Get the trustServerCertificate property: Whether to trust server certificate or not.

Returns:

the trustServerCertificate value.

username

public String username()

Get the username property: User name to connect to source SQL.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withAuthentication

public SqlConnectionInformation withAuthentication(String authentication)

Set the authentication property: Authentication type.

Parameters:

authentication - the authentication value to set.

Returns:

the SqlConnectionInformation object itself.

withDataSource

public SqlConnectionInformation withDataSource(String dataSource)

Set the dataSource property: Data source.

Parameters:

dataSource - the dataSource value to set.

Returns:

the SqlConnectionInformation object itself.

withEncryptConnection

public SqlConnectionInformation withEncryptConnection(Boolean encryptConnection)

Set the encryptConnection property: Whether to encrypt connection or not.

Parameters:

encryptConnection - the encryptConnection value to set.

Returns:

the SqlConnectionInformation object itself.

withPassword

public SqlConnectionInformation withPassword(String password)

Set the password property: Password to connect to source SQL.

Parameters:

password - the password value to set.

Returns:

the SqlConnectionInformation object itself.

withTrustServerCertificate

public SqlConnectionInformation withTrustServerCertificate(Boolean trustServerCertificate)

Set the trustServerCertificate property: Whether to trust server certificate or not.

Parameters:

trustServerCertificate - the trustServerCertificate value to set.

Returns:

the SqlConnectionInformation object itself.

withUsername

public SqlConnectionInformation withUsername(String username)

Set the username property: User name to connect to source SQL.

Parameters:

username - the username value to set.

Returns:

the SqlConnectionInformation object itself.

Applies to