SqlConnectionInformation Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. models. SqlConnectionInformation
- com.
Implements
public final class SqlConnectionInformation
implements JsonSerializable<SqlConnectionInformation>
Source SQL Connection.
Constructor Summary
| Constructor | Description |
|---|---|
| SqlConnectionInformation() |
Creates an instance of Sql |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
authentication()
Get the authentication property: Authentication type. |
| String |
dataSource()
Get the data |
| Boolean |
encryptConnection()
Get the encrypt |
|
static
Sql |
fromJson(JsonReader jsonReader)
Reads an instance of Sql |
| String |
password()
Get the password property: Password to connect to source SQL. |
|
Json |
toJson(JsonWriter jsonWriter) |
| Boolean |
trustServerCertificate()
Get the trust |
| String |
username()
Get the username property: User name to connect to source SQL. |
| void |
validate()
Validates the instance. |
|
Sql |
withAuthentication(String authentication)
Set the authentication property: Authentication type. |
|
Sql |
withDataSource(String dataSource)
Set the data |
|
Sql |
withEncryptConnection(Boolean encryptConnection)
Set the encrypt |
|
Sql |
withPassword(String password)
Set the password property: Password to connect to source SQL. |
|
Sql |
withTrustServerCertificate(Boolean trustServerCertificate)
Set the trust |
|
Sql |
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:
dataSource
public String dataSource()
Get the dataSource property: Data source.
Returns:
encryptConnection
public Boolean encryptConnection()
Get the encryptConnection property: Whether to encrypt connection or not.
Returns:
fromJson
public static SqlConnectionInformation fromJson(JsonReader jsonReader)
Reads an instance of SqlConnectionInformation from the JsonReader.
Parameters:
Returns:
Throws:
password
public String password()
Get the password property: Password to connect to source SQL.
Returns:
toJson
trustServerCertificate
public Boolean trustServerCertificate()
Get the trustServerCertificate property: Whether to trust server certificate or not.
Returns:
username
public String username()
Get the username property: User name to connect to source SQL.
Returns:
validate
public void validate()
Validates the instance.
withAuthentication
public SqlConnectionInformation withAuthentication(String authentication)
Set the authentication property: Authentication type.
Parameters:
Returns:
withDataSource
public SqlConnectionInformation withDataSource(String dataSource)
Set the dataSource property: Data source.
Parameters:
Returns:
withEncryptConnection
public SqlConnectionInformation withEncryptConnection(Boolean encryptConnection)
Set the encryptConnection property: Whether to encrypt connection or not.
Parameters:
Returns:
withPassword
public SqlConnectionInformation withPassword(String password)
Set the password property: Password to connect to source SQL.
Parameters:
Returns:
withTrustServerCertificate
public SqlConnectionInformation withTrustServerCertificate(Boolean trustServerCertificate)
Set the trustServerCertificate property: Whether to trust server certificate or not.
Parameters:
Returns:
withUsername
public SqlConnectionInformation withUsername(String username)
Set the username property: User name to connect to source SQL.
Parameters:
Returns: