SqlConnectionInfo Class
- java.
lang. Object - com.
azure. resourcemanager. datamigration. models. ConnectionInfo - com.
azure. resourcemanager. datamigration. models. SqlConnectionInfo
- com.
- com.
public final class SqlConnectionInfo
extends ConnectionInfo
Information for connecting to SQL database server.
Constructor Summary
| Constructor | Description |
|---|---|
| SqlConnectionInfo() |
Creates an instance of Sql |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
additionalSettings()
Get the additional |
|
Authentication |
authentication()
Get the authentication property: Authentication type to use for connection. |
| String |
dataSource()
Get the data |
| Boolean |
encryptConnection()
Get the encrypt |
|
static
Sql |
fromJson(JsonReader jsonReader)
Reads an instance of Sql |
|
Sql |
platform()
Get the platform property: Server platform type for connection. |
| Integer |
port()
Get the port property: Port for Server. |
| String |
resourceId()
Get the resource |
| String |
serverBrandVersion()
Get the server |
| String |
serverName()
Get the server |
| String |
serverVersion()
Get the server |
|
Json |
toJson(JsonWriter jsonWriter) |
| Boolean |
trustServerCertificate()
Get the trust |
| String |
type()
Get the type property: Type of connection info. |
| void |
validate()
Validates the instance. |
|
Sql |
withAdditionalSettings(String additionalSettings)
Set the additional |
|
Sql |
withAuthentication(AuthenticationType authentication)
Set the authentication property: Authentication type to use for connection. |
|
Sql |
withDataSource(String dataSource)
Set the data |
|
Sql |
withEncryptConnection(Boolean encryptConnection)
Set the encrypt |
|
Sql |
withPassword(String password)
Set the password property: Password credential. |
|
Sql |
withPlatform(SqlSourcePlatform platform)
Set the platform property: Server platform type for connection. |
|
Sql |
withPort(Integer port)
Set the port property: Port for Server. |
|
Sql |
withResourceId(String resourceId)
Set the resource |
|
Sql |
withServerBrandVersion(String serverBrandVersion)
Set the server |
|
Sql |
withServerName(String serverName)
Set the server |
|
Sql |
withServerVersion(String serverVersion)
Set the server |
|
Sql |
withTrustServerCertificate(Boolean trustServerCertificate)
Set the trust |
|
Sql |
withUsername(String username)
Set the username property: User name. |
Methods inherited from ConnectionInfo
Methods inherited from java.lang.Object
Constructor Details
SqlConnectionInfo
public SqlConnectionInfo()
Creates an instance of SqlConnectionInfo class.
Method Details
additionalSettings
public String additionalSettings()
Get the additionalSettings property: Additional connection settings.
Returns:
authentication
public AuthenticationType authentication()
Get the authentication property: Authentication type to use for connection.
Returns:
dataSource
public String dataSource()
Get the dataSource property: Data source in the format Protocol:MachineName\SQLServerInstanceName,PortNumber.
Returns:
encryptConnection
public Boolean encryptConnection()
Get the encryptConnection property: Whether to encrypt the connection.
Returns:
fromJson
public static SqlConnectionInfo fromJson(JsonReader jsonReader)
Reads an instance of SqlConnectionInfo from the JsonReader.
Parameters:
Returns:
Throws:
platform
public SqlSourcePlatform platform()
Get the platform property: Server platform type for connection.
Returns:
port
public Integer port()
Get the port property: Port for Server.
Returns:
resourceId
public String resourceId()
Get the resourceId property: Represents the ID of an HTTP resource represented by an Azure resource provider.
Returns:
serverBrandVersion
public String serverBrandVersion()
Get the serverBrandVersion property: server brand version.
Returns:
serverName
public String serverName()
Get the serverName property: name of the server.
Returns:
serverVersion
public String serverVersion()
Get the serverVersion property: server version.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
SqlConnectionInfo.toJson(JsonWriter jsonWriter)Parameters:
Throws:
trustServerCertificate
public Boolean trustServerCertificate()
Get the trustServerCertificate property: Whether to trust the server certificate.
Returns:
type
public String type()
Get the type property: Type of connection info.
Overrides:
SqlConnectionInfo.type()Returns:
validate
public void validate()
Validates the instance.
Overrides:
SqlConnectionInfo.validate()withAdditionalSettings
public SqlConnectionInfo withAdditionalSettings(String additionalSettings)
Set the additionalSettings property: Additional connection settings.
Parameters:
Returns:
withAuthentication
public SqlConnectionInfo withAuthentication(AuthenticationType authentication)
Set the authentication property: Authentication type to use for connection.
Parameters:
Returns:
withDataSource
public SqlConnectionInfo withDataSource(String dataSource)
Set the dataSource property: Data source in the format Protocol:MachineName\SQLServerInstanceName,PortNumber.
Parameters:
Returns:
withEncryptConnection
public SqlConnectionInfo withEncryptConnection(Boolean encryptConnection)
Set the encryptConnection property: Whether to encrypt the connection.
Parameters:
Returns:
withPassword
public SqlConnectionInfo withPassword(String password)
Set the password property: Password credential.
Overrides:
SqlConnectionInfo.withPassword(String password)Parameters:
withPlatform
public SqlConnectionInfo withPlatform(SqlSourcePlatform platform)
Set the platform property: Server platform type for connection.
Parameters:
Returns:
withPort
public SqlConnectionInfo withPort(Integer port)
Set the port property: Port for Server.
Parameters:
Returns:
withResourceId
public SqlConnectionInfo withResourceId(String resourceId)
Set the resourceId property: Represents the ID of an HTTP resource represented by an Azure resource provider.
Parameters:
Returns:
withServerBrandVersion
public SqlConnectionInfo withServerBrandVersion(String serverBrandVersion)
Set the serverBrandVersion property: server brand version.
Parameters:
Returns:
withServerName
public SqlConnectionInfo withServerName(String serverName)
Set the serverName property: name of the server.
Parameters:
Returns:
withServerVersion
public SqlConnectionInfo withServerVersion(String serverVersion)
Set the serverVersion property: server version.
Parameters:
Returns:
withTrustServerCertificate
public SqlConnectionInfo withTrustServerCertificate(Boolean trustServerCertificate)
Set the trustServerCertificate property: Whether to trust the server certificate.
Parameters:
Returns:
withUsername
public SqlConnectionInfo withUsername(String username)
Set the username property: User name.
Overrides:
SqlConnectionInfo.withUsername(String username)Parameters: