Class SqlConnectionInfo
java.lang.Object
com.azure.resourcemanager.datamigration.models.ConnectionInfo
com.azure.resourcemanager.datamigration.models.SqlConnectionInfo
Information for connecting to SQL database server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalSettings property: Additional connection settings.Get the authentication property: Authentication type to use for connection.Get the dataSource property: Data source in the format Protocol:MachineName\SQLServerInstanceName,PortNumber.Get the encryptConnection property: Whether to encrypt the connection.platform()Get the platform property: Server platform type for connection.Get the trustServerCertificate property: Whether to trust the server certificate.voidvalidate()Validates the instance.withAdditionalSettings(String additionalSettings) Set the additionalSettings property: Additional connection settings.withAuthentication(AuthenticationType authentication) Set the authentication property: Authentication type to use for connection.withDataSource(String dataSource) Set the dataSource property: Data source in the format Protocol:MachineName\SQLServerInstanceName,PortNumber.withEncryptConnection(Boolean encryptConnection) Set the encryptConnection property: Whether to encrypt the connection.withPassword(String password) Set the password property: Password credential.withPlatform(SqlSourcePlatform platform) Set the platform property: Server platform type for connection.withTrustServerCertificate(Boolean trustServerCertificate) Set the trustServerCertificate property: Whether to trust the server certificate.withUsername(String username) Set the username property: User name.Methods inherited from class com.azure.resourcemanager.datamigration.models.ConnectionInfo
password, username
-
Constructor Details
-
SqlConnectionInfo
public SqlConnectionInfo()Creates an instance of SqlConnectionInfo class.
-
-
Method Details
-
dataSource
Get the dataSource property: Data source in the format Protocol:MachineName\SQLServerInstanceName,PortNumber.- Returns:
- the dataSource value.
-
withDataSource
Set the dataSource property: Data source in the format Protocol:MachineName\SQLServerInstanceName,PortNumber.- Parameters:
dataSource- the dataSource value to set.- Returns:
- the SqlConnectionInfo object itself.
-
authentication
Get the authentication property: Authentication type to use for connection.- Returns:
- the authentication value.
-
withAuthentication
Set the authentication property: Authentication type to use for connection.- Parameters:
authentication- the authentication value to set.- Returns:
- the SqlConnectionInfo object itself.
-
encryptConnection
Get the encryptConnection property: Whether to encrypt the connection.- Returns:
- the encryptConnection value.
-
withEncryptConnection
Set the encryptConnection property: Whether to encrypt the connection.- Parameters:
encryptConnection- the encryptConnection value to set.- Returns:
- the SqlConnectionInfo object itself.
-
additionalSettings
Get the additionalSettings property: Additional connection settings.- Returns:
- the additionalSettings value.
-
withAdditionalSettings
Set the additionalSettings property: Additional connection settings.- Parameters:
additionalSettings- the additionalSettings value to set.- Returns:
- the SqlConnectionInfo object itself.
-
trustServerCertificate
Get the trustServerCertificate property: Whether to trust the server certificate.- Returns:
- the trustServerCertificate value.
-
withTrustServerCertificate
Set the trustServerCertificate property: Whether to trust the server certificate.- Parameters:
trustServerCertificate- the trustServerCertificate value to set.- Returns:
- the SqlConnectionInfo object itself.
-
platform
Get the platform property: Server platform type for connection.- Returns:
- the platform value.
-
withPlatform
Set the platform property: Server platform type for connection.- Parameters:
platform- the platform value to set.- Returns:
- the SqlConnectionInfo object itself.
-
withUsername
Set the username property: User name.- Overrides:
withUsernamein classConnectionInfo- Parameters:
username- the username value to set.- Returns:
- the ConnectionInfo object itself.
-
withPassword
Set the password property: Password credential.- Overrides:
withPasswordin classConnectionInfo- Parameters:
password- the password value to set.- Returns:
- the ConnectionInfo object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classConnectionInfo- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-