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