Class ServicePrincipalCredential
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.Credential
-
- com.azure.resourcemanager.datafactory.models.ServicePrincipalCredential
-
public final class ServicePrincipalCredential extends Credential
Service principal credential.
-
-
Constructor Summary
Constructors Constructor Description ServicePrincipalCredential()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectservicePrincipalId()Get the servicePrincipalId property: The app ID of the service principal used to authenticate.AzureKeyVaultSecretReferenceservicePrincipalKey()Get the servicePrincipalKey property: The key of the service principal used to authenticate.Objecttenant()Get the tenant property: The ID of the tenant to which the service principal belongs.voidvalidate()Validates the instance.ServicePrincipalCredentialwithAnnotations(List<Object> annotations)Set the annotations property: List of tags that can be used for describing the Credential.ServicePrincipalCredentialwithDescription(String description)Set the description property: Credential description.ServicePrincipalCredentialwithServicePrincipalId(Object servicePrincipalId)Set the servicePrincipalId property: The app ID of the service principal used to authenticate.ServicePrincipalCredentialwithServicePrincipalKey(AzureKeyVaultSecretReference servicePrincipalKey)Set the servicePrincipalKey property: The key of the service principal used to authenticate.ServicePrincipalCredentialwithTenant(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
-
-
-
-
Method Detail
-
withDescription
public ServicePrincipalCredential withDescription(String description)
Set the description property: Credential description.- Overrides:
withDescriptionin classCredential- Parameters:
description- the description value to set.- Returns:
- the Credential object itself.
-
withAnnotations
public ServicePrincipalCredential withAnnotations(List<Object> annotations)
Set the annotations property: List of tags that can be used for describing the Credential.- Overrides:
withAnnotationsin classCredential- Parameters:
annotations- the annotations value to set.- Returns:
- the Credential object itself.
-
servicePrincipalId
public Object servicePrincipalId()
Get the servicePrincipalId property: The app ID of the service principal used to authenticate.- Returns:
- the servicePrincipalId value.
-
withServicePrincipalId
public ServicePrincipalCredential withServicePrincipalId(Object servicePrincipalId)
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
public AzureKeyVaultSecretReference 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
public Object tenant()
Get the tenant property: The ID of the tenant to which the service principal belongs.- Returns:
- the tenant value.
-
withTenant
public ServicePrincipalCredential withTenant(Object tenant)
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:
validatein classCredential- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-