Class ServicePrincipalCredentialTypeProperties
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.fluent.models.ServicePrincipalCredentialTypeProperties
-
public final class ServicePrincipalCredentialTypeProperties extends Object
Service Principal credential type properties.
-
-
Constructor Summary
Constructors Constructor Description ServicePrincipalCredentialTypeProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
servicePrincipalId()
Get the servicePrincipalId property: The app ID of the service principal used to authenticate.AzureKeyVaultSecretReference
servicePrincipalKey()
Get the servicePrincipalKey property: The key of the service principal used to authenticate.Object
tenant()
Get the tenant property: The ID of the tenant to which the service principal belongs.void
validate()
Validates the instance.ServicePrincipalCredentialTypeProperties
withServicePrincipalId(Object servicePrincipalId)
Set the servicePrincipalId property: The app ID of the service principal used to authenticate.ServicePrincipalCredentialTypeProperties
withServicePrincipalKey(AzureKeyVaultSecretReference servicePrincipalKey)
Set the servicePrincipalKey property: The key of the service principal used to authenticate.ServicePrincipalCredentialTypeProperties
withTenant(Object tenant)
Set the tenant property: The ID of the tenant to which the service principal belongs.
-
-
-
Method Detail
-
servicePrincipalId
public Object servicePrincipalId()
Get the servicePrincipalId property: The app ID of the service principal used to authenticate.- Returns:
- the servicePrincipalId value.
-
withServicePrincipalId
public ServicePrincipalCredentialTypeProperties 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 ServicePrincipalCredentialTypeProperties 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 ServicePrincipalCredentialTypeProperties 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 ServicePrincipalCredentialTypeProperties 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 ServicePrincipalCredentialTypeProperties 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 ServicePrincipalCredentialTypeProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-