Class ServicePrincipalCredential
java.lang.Object
com.azure.resourcemanager.datafactory.models.Credential
com.azure.resourcemanager.datafactory.models.ServicePrincipalCredential
Service principal credential.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ServicePrincipalCredential class. -
Method Summary
Modifier and TypeMethodDescriptionGet the servicePrincipalId property: The app ID of the service principal used to authenticate.Get the servicePrincipalKey property: The key of the service principal used to authenticate.tenant()
Get the tenant property: The ID of the tenant to which the service principal belongs.void
validate()
Validates the instance.withAnnotations
(List<Object> annotations) Set the annotations property: List of tags that can be used for describing the Credential.withDescription
(String description) Set the description property: Credential description.withServicePrincipalId
(Object servicePrincipalId) Set the servicePrincipalId property: The app ID of the service principal used to authenticate.withServicePrincipalKey
(AzureKeyVaultSecretReference servicePrincipalKey) Set the servicePrincipalKey property: The key of the service principal used to authenticate.withTenant
(Object tenant) Set the tenant property: The ID of the tenant to which the service principal belongs.Methods inherited from class com.azure.resourcemanager.datafactory.models.Credential
additionalProperties, annotations, description, withAdditionalProperties
-
Constructor Details
-
ServicePrincipalCredential
public ServicePrincipalCredential()Creates an instance of ServicePrincipalCredential class.
-
-
Method Details
-
withDescription
Set the description property: Credential description.- Overrides:
withDescription
in classCredential
- Parameters:
description
- the description value to set.- Returns:
- the Credential object itself.
-
withAnnotations
Set the annotations property: List of tags that can be used for describing the Credential.- Overrides:
withAnnotations
in classCredential
- Parameters:
annotations
- the annotations value to set.- Returns:
- the Credential object itself.
-
servicePrincipalId
Get the servicePrincipalId property: The app ID of the service principal used to authenticate.- Returns:
- the servicePrincipalId value.
-
withServicePrincipalId
Set the servicePrincipalId property: The app ID of the service principal used to authenticate.- Parameters:
servicePrincipalId
- the servicePrincipalId value to set.- Returns:
- the ServicePrincipalCredential object itself.
-
servicePrincipalKey
Get the servicePrincipalKey property: The key of the service principal used to authenticate.- Returns:
- the servicePrincipalKey value.
-
withServicePrincipalKey
public ServicePrincipalCredential withServicePrincipalKey(AzureKeyVaultSecretReference servicePrincipalKey) Set the servicePrincipalKey property: The key of the service principal used to authenticate.- Parameters:
servicePrincipalKey
- the servicePrincipalKey value to set.- Returns:
- the ServicePrincipalCredential object itself.
-
tenant
Get the tenant property: The ID of the tenant to which the service principal belongs.- Returns:
- the tenant value.
-
withTenant
Set the tenant property: The ID of the tenant to which the service principal belongs.- Parameters:
tenant
- the tenant value to set.- Returns:
- the ServicePrincipalCredential object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classCredential
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-