Class DataSourceServicePrincipal
java.lang.Object
com.azure.ai.metricsadvisor.administration.models.DataSourceCredentialEntity
com.azure.ai.metricsadvisor.administration.models.DataSourceServicePrincipal
The service principal credential entity for data source..
-
Constructor Summary
ConstructorDescriptionDataSourceServicePrincipal
(String name, String clientId, String tenantId, String clientSecret) Creates DataSourceServicePrincipal. -
Method Summary
Modifier and TypeMethodDescriptionGets the client id.Gets the credential description.getId()
Gets the credential id.getName()
Gets the credential name.Gets the tenant id.setClientId
(String clientId) Sets the client id.setClientSecret
(String clientSecret) Sets the client secret.setDescription
(String description) Sets the description.Sets the name.setTenantId
(String tenantId) Sets the tenant id.
-
Constructor Details
-
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.
-
getClientId
Gets the client id.- Returns:
- The client id.
-
getTenantId
Gets the tenant id.- Returns:
- The tenant id.
-
setName
Sets the name.- Parameters:
name
- The name- Returns:
- an updated object with name set
-
setClientId
Sets the client id.- Parameters:
clientId
- The client id- Returns:
- an updated object with client id set
-
setClientSecret
Sets the client secret.- Parameters:
clientSecret
- The client secret- Returns:
- an updated object with client secret set
-
setTenantId
Sets the tenant id.- Parameters:
tenantId
- The tenant id- Returns:
- an updated object with client teant id set
-
setDescription
Sets the description.- Parameters:
description
- The description- Returns:
- an updated object with description set
-