Class CosmosDbLinkedService
- java.lang.Object
-
- com.azure.resourcemanager.datafactory.models.LinkedService
-
- com.azure.resourcemanager.datafactory.models.CosmosDbLinkedService
-
public final class CosmosDbLinkedService extends LinkedService
Microsoft Azure Cosmos Database (CosmosDB) linked service.
-
-
Constructor Summary
Constructors Constructor Description CosmosDbLinkedService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
accountEndpoint()
Get the accountEndpoint property: The endpoint of the Azure CosmosDB account.SecretBase
accountKey()
Get the accountKey property: The account key of the Azure CosmosDB account.Object
azureCloudType()
Get the azureCloudType property: Indicates the azure cloud type of the service principle auth.CosmosDbConnectionMode
connectionMode()
Get the connectionMode property: The connection mode used to access CosmosDB account.Object
connectionString()
Get the connectionString property: The connection string.CredentialReference
credential()
Get the credential property: The credential reference containing authentication information.Object
database()
Get the database property: The name of the database.Object
encryptedCredential()
Get the encryptedCredential property: The encrypted credential used for authentication.SecretBase
servicePrincipalCredential()
Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active Directory.CosmosDbServicePrincipalCredentialType
servicePrincipalCredentialType()
Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server authentication.Object
servicePrincipalId()
Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Server-To-Server authentication.Object
tenant()
Get the tenant property: The name or ID of the tenant to which the service principal belongs.void
validate()
Validates the instance.CosmosDbLinkedService
withAccountEndpoint(Object accountEndpoint)
Set the accountEndpoint property: The endpoint of the Azure CosmosDB account.CosmosDbLinkedService
withAccountKey(SecretBase accountKey)
Set the accountKey property: The account key of the Azure CosmosDB account.CosmosDbLinkedService
withAnnotations(List<Object> annotations)
Set the annotations property: List of tags that can be used for describing the linked service.CosmosDbLinkedService
withAzureCloudType(Object azureCloudType)
Set the azureCloudType property: Indicates the azure cloud type of the service principle auth.CosmosDbLinkedService
withConnectionMode(CosmosDbConnectionMode connectionMode)
Set the connectionMode property: The connection mode used to access CosmosDB account.CosmosDbLinkedService
withConnectionString(Object connectionString)
Set the connectionString property: The connection string.CosmosDbLinkedService
withConnectVia(IntegrationRuntimeReference connectVia)
Set the connectVia property: The integration runtime reference.CosmosDbLinkedService
withCredential(CredentialReference credential)
Set the credential property: The credential reference containing authentication information.CosmosDbLinkedService
withDatabase(Object database)
Set the database property: The name of the database.CosmosDbLinkedService
withDescription(String description)
Set the description property: Linked service description.CosmosDbLinkedService
withEncryptedCredential(Object encryptedCredential)
Set the encryptedCredential property: The encrypted credential used for authentication.CosmosDbLinkedService
withParameters(Map<String,ParameterSpecification> parameters)
Set the parameters property: Parameters for linked service.CosmosDbLinkedService
withServicePrincipalCredential(SecretBase servicePrincipalCredential)
Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active Directory.CosmosDbLinkedService
withServicePrincipalCredentialType(CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType)
Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server authentication.CosmosDbLinkedService
withServicePrincipalId(Object servicePrincipalId)
Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Server-To-Server authentication.CosmosDbLinkedService
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
-
-
-
-
Method Detail
-
withConnectVia
public CosmosDbLinkedService withConnectVia(IntegrationRuntimeReference connectVia)
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
public CosmosDbLinkedService withDescription(String description)
Set the description property: Linked service description.- Overrides:
withDescription
in classLinkedService
- Parameters:
description
- the description value to set.- Returns:
- the LinkedService object itself.
-
withParameters
public CosmosDbLinkedService withParameters(Map<String,ParameterSpecification> parameters)
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
public CosmosDbLinkedService withAnnotations(List<Object> annotations)
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
public Object connectionString()
Get the connectionString property: The connection string. Type: string, SecureString or AzureKeyVaultSecretReference.- Returns:
- the connectionString value.
-
withConnectionString
public CosmosDbLinkedService withConnectionString(Object connectionString)
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
public Object accountEndpoint()
Get the accountEndpoint property: The endpoint of the Azure CosmosDB account. Type: string (or Expression with resultType string).- Returns:
- the accountEndpoint value.
-
withAccountEndpoint
public CosmosDbLinkedService withAccountEndpoint(Object accountEndpoint)
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
public Object database()
Get the database property: The name of the database. Type: string (or Expression with resultType string).- Returns:
- the database value.
-
withDatabase
public CosmosDbLinkedService withDatabase(Object database)
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
public SecretBase accountKey()
Get the accountKey property: The account key of the Azure CosmosDB account. Type: SecureString or AzureKeyVaultSecretReference.- Returns:
- the accountKey value.
-
withAccountKey
public CosmosDbLinkedService withAccountKey(SecretBase accountKey)
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
public Object 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
public CosmosDbLinkedService withServicePrincipalId(Object servicePrincipalId)
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
public CosmosDbServicePrincipalCredentialType 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
public SecretBase 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
public CosmosDbLinkedService withServicePrincipalCredential(SecretBase servicePrincipalCredential)
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
public Object 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
public CosmosDbLinkedService withTenant(Object tenant)
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
public Object 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
public CosmosDbLinkedService withAzureCloudType(Object azureCloudType)
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
public CosmosDbConnectionMode 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
public CosmosDbLinkedService withConnectionMode(CosmosDbConnectionMode connectionMode)
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
public Object 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
public CosmosDbLinkedService withEncryptedCredential(Object encryptedCredential)
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
public CredentialReference credential()
Get the credential property: The credential reference containing authentication information.- Returns:
- the credential value.
-
withCredential
public CosmosDbLinkedService withCredential(CredentialReference credential)
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.
-
-