Class DataSourceSqlServerConnectionString
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.DataSourceCredentialEntity
com.azure.ai.metricsadvisor.administration.models.DataSourceSqlServerConnectionString
The connection credential entity for SQLServer.
-
Constructor Summary
ConstructorDescriptionDataSourceSqlServerConnectionString
(String name, String connectionString) Creates DataSourceSqlServerConnectionString. -
Method Summary
Modifier and TypeMethodDescriptionGets the credential description.getId()
Gets the credential id.getName()
Gets the credential name.setConnectionString
(String connectionString) Sets the connection string.setDescription
(String description) Sets the description.Sets the name.
-
Constructor Details
-
DataSourceSqlServerConnectionString
Creates DataSourceSqlServerConnectionString.- Parameters:
name
- The nameconnectionString
- The connection string
-
-
Method Details
-
getId
Description copied from class:DataSourceCredentialEntity
Gets the credential id.- Specified by:
getId
in classDataSourceCredentialEntity
- Returns:
- The credential id.
-
getName
Description copied from class:DataSourceCredentialEntity
Gets the credential name.- Specified by:
getName
in classDataSourceCredentialEntity
- Returns:
- The credential name.
-
getDescription
Description copied from class:DataSourceCredentialEntity
Gets the credential description.- Specified by:
getDescription
in classDataSourceCredentialEntity
- Returns:
- The credential description.
-
setName
Sets the name.- Parameters:
name
- The name- Returns:
- an updated object with name set
-
setConnectionString
Sets the connection string.- Parameters:
connectionString
- The connection string- Returns:
- an updated object with connection string set
-
setDescription
Sets the description.- Parameters:
description
- The description.- Returns:
- an updated object with description set
-