Class CosmosDbLinkedService
java.lang.Object
com.azure.resourcemanager.datafactory.models.LinkedService
com.azure.resourcemanager.datafactory.models.CosmosDbLinkedService
Microsoft Azure Cosmos Database (CosmosDB) linked service.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the accountEndpoint property: The endpoint of the Azure CosmosDB account.Get the accountKey property: The account key of the Azure CosmosDB account.Get the azureCloudType property: Indicates the azure cloud type of the service principle auth.Get the connectionMode property: The connection mode used to access CosmosDB account.Get the connectionString property: The connection string.Get the credential property: The credential reference containing authentication information.database()
Get the database property: The name of the database.Get the encryptedCredential property: The encrypted credential used for authentication.Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active Directory.Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server authentication.Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Server-To-Server authentication.tenant()
Get the tenant property: The name or ID of the tenant to which the service principal belongs.void
validate()
Validates the instance.withAccountEndpoint
(Object accountEndpoint) Set the accountEndpoint property: The endpoint of the Azure CosmosDB account.withAccountKey
(SecretBase accountKey) Set the accountKey property: The account key of the Azure CosmosDB account.withAnnotations
(List<Object> annotations) Set the annotations property: List of tags that can be used for describing the linked service.withAzureCloudType
(Object azureCloudType) Set the azureCloudType property: Indicates the azure cloud type of the service principle auth.withConnectionMode
(CosmosDbConnectionMode connectionMode) Set the connectionMode property: The connection mode used to access CosmosDB account.withConnectionString
(Object connectionString) Set the connectionString property: The connection string.withConnectVia
(IntegrationRuntimeReference connectVia) Set the connectVia property: The integration runtime reference.withCredential
(CredentialReference credential) Set the credential property: The credential reference containing authentication information.withDatabase
(Object database) Set the database property: The name of the database.withDescription
(String description) Set the description property: Linked service description.withEncryptedCredential
(Object encryptedCredential) Set the encryptedCredential property: The encrypted credential used for authentication.withParameters
(Map<String, ParameterSpecification> parameters) Set the parameters property: Parameters for linked service.withServicePrincipalCredential
(SecretBase servicePrincipalCredential) Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active Directory.withServicePrincipalCredentialType
(CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType) Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server authentication.withServicePrincipalId
(Object servicePrincipalId) Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Server-To-Server authentication.withTenant
(Object tenant) Set the tenant property: The name or ID of the tenant to which the service principal belongs.Methods inherited from class com.azure.resourcemanager.datafactory.models.LinkedService
additionalProperties, annotations, connectVia, description, parameters, withAdditionalProperties
-
Constructor Details
-
CosmosDbLinkedService
public CosmosDbLinkedService()Creates an instance of CosmosDbLinkedService class.
-
-
Method Details
-
withConnectVia
Set the connectVia property: The integration runtime reference.- Overrides:
withConnectVia
in classLinkedService
- Parameters:
connectVia
- the connectVia value to set.- Returns:
- the LinkedService object itself.
-
withDescription
Set the description property: Linked service description.- Overrides:
withDescription
in classLinkedService
- Parameters:
description
- the description value to set.- Returns:
- the LinkedService object itself.
-
withParameters
Set the parameters property: Parameters for linked service.- Overrides:
withParameters
in classLinkedService
- Parameters:
parameters
- the parameters value to set.- Returns:
- the LinkedService object itself.
-
withAnnotations
Set the annotations property: List of tags that can be used for describing the linked service.- Overrides:
withAnnotations
in classLinkedService
- Parameters:
annotations
- the annotations value to set.- Returns:
- the LinkedService object itself.
-
connectionString
Get the connectionString property: The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.- Returns:
- the connectionString value.
-
withConnectionString
Set the connectionString property: The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.- Parameters:
connectionString
- the connectionString value to set.- Returns:
- the CosmosDbLinkedService object itself.
-
accountEndpoint
Get the accountEndpoint property: The endpoint of the Azure CosmosDB account. Type: string (or Expression with resultType string).- Returns:
- the accountEndpoint value.
-
withAccountEndpoint
Set the accountEndpoint property: The endpoint of the Azure CosmosDB account. Type: string (or Expression with resultType string).- Parameters:
accountEndpoint
- the accountEndpoint value to set.- Returns:
- the CosmosDbLinkedService object itself.
-
database
Get the database property: The name of the database. Type: string (or Expression with resultType string).- Returns:
- the database value.
-
withDatabase
Set the database property: The name of the database. Type: string (or Expression with resultType string).- Parameters:
database
- the database value to set.- Returns:
- the CosmosDbLinkedService object itself.
-
accountKey
Get the accountKey property: The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference.- Returns:
- the accountKey value.
-
withAccountKey
Set the accountKey property: The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference.- Parameters:
accountKey
- the accountKey value to set.- Returns:
- the CosmosDbLinkedService object itself.
-
servicePrincipalId
Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression with resultType string).- Returns:
- the servicePrincipalId value.
-
withServicePrincipalId
Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Server-To-Server authentication. Type: string (or Expression with resultType string).- Parameters:
servicePrincipalId
- the servicePrincipalId value to set.- Returns:
- the CosmosDbLinkedService object itself.
-
servicePrincipalCredentialType
Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).- Returns:
- the servicePrincipalCredentialType value.
-
withServicePrincipalCredentialType
public CosmosDbLinkedService withServicePrincipalCredentialType(CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType) Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server authentication. 'ServicePrincipalKey' for key/secret, 'ServicePrincipalCert' for certificate. Type: string (or Expression with resultType string).- Parameters:
servicePrincipalCredentialType
- the servicePrincipalCredentialType value to set.- Returns:
- the CosmosDbLinkedService object itself.
-
servicePrincipalCredential
Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.- Returns:
- the servicePrincipalCredential value.
-
withServicePrincipalCredential
Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference.- Parameters:
servicePrincipalCredential
- the servicePrincipalCredential value to set.- Returns:
- the CosmosDbLinkedService object itself.
-
tenant
Get the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string).- Returns:
- the tenant value.
-
withTenant
Set the tenant property: The name or ID of the tenant to which the service principal belongs. Type: string (or Expression with resultType string).- Parameters:
tenant
- the tenant value to set.- Returns:
- the CosmosDbLinkedService object itself.
-
azureCloudType
Get the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string).- Returns:
- the azureCloudType value.
-
withAzureCloudType
Set the azureCloudType property: Indicates the azure cloud type of the service principle auth. Allowed values are AzurePublic, AzureChina, AzureUsGovernment, AzureGermany. Default value is the data factory regions’ cloud type. Type: string (or Expression with resultType string).- Parameters:
azureCloudType
- the azureCloudType value to set.- Returns:
- the CosmosDbLinkedService object itself.
-
connectionMode
Get the connectionMode property: The connection mode used to access CosmosDB account. Type: string (or Expression with resultType string).- Returns:
- the connectionMode value.
-
withConnectionMode
Set the connectionMode property: The connection mode used to access CosmosDB account. Type: string (or Expression with resultType string).- Parameters:
connectionMode
- the connectionMode value to set.- Returns:
- the CosmosDbLinkedService object itself.
-
encryptedCredential
Get the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).- Returns:
- the encryptedCredential value.
-
withEncryptedCredential
Set the encryptedCredential property: The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string (or Expression with resultType string).- Parameters:
encryptedCredential
- the encryptedCredential value to set.- Returns:
- the CosmosDbLinkedService object itself.
-
credential
Get the credential property: The credential reference containing authentication information.- Returns:
- the credential value.
-
withCredential
Set the credential property: The credential reference containing authentication information.- Parameters:
credential
- the credential value to set.- Returns:
- the CosmosDbLinkedService object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classLinkedService
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-