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 ObjectaccountEndpoint()Get the accountEndpoint property: The endpoint of the Azure CosmosDB account.SecretBaseaccountKey()Get the accountKey property: The account key of the Azure CosmosDB account.ObjectazureCloudType()Get the azureCloudType property: Indicates the azure cloud type of the service principle auth.CosmosDbConnectionModeconnectionMode()Get the connectionMode property: The connection mode used to access CosmosDB account.ObjectconnectionString()Get the connectionString property: The connection string.Objectdatabase()Get the database property: The name of the database.ObjectencryptedCredential()Get the encryptedCredential property: The encrypted credential used for authentication.SecretBaseservicePrincipalCredential()Get the servicePrincipalCredential property: The credential of the service principal object in Azure Active Directory.CosmosDbServicePrincipalCredentialTypeservicePrincipalCredentialType()Get the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server authentication.ObjectservicePrincipalId()Get the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Server-To-Server authentication.Objecttenant()Get the tenant property: The name or ID of the tenant to which the service principal belongs.voidvalidate()Validates the instance.CosmosDbLinkedServicewithAccountEndpoint(Object accountEndpoint)Set the accountEndpoint property: The endpoint of the Azure CosmosDB account.CosmosDbLinkedServicewithAccountKey(SecretBase accountKey)Set the accountKey property: The account key of the Azure CosmosDB account.CosmosDbLinkedServicewithAnnotations(List<Object> annotations)Set the annotations property: List of tags that can be used for describing the linked service.CosmosDbLinkedServicewithAzureCloudType(Object azureCloudType)Set the azureCloudType property: Indicates the azure cloud type of the service principle auth.CosmosDbLinkedServicewithConnectionMode(CosmosDbConnectionMode connectionMode)Set the connectionMode property: The connection mode used to access CosmosDB account.CosmosDbLinkedServicewithConnectionString(Object connectionString)Set the connectionString property: The connection string.CosmosDbLinkedServicewithConnectVia(IntegrationRuntimeReference connectVia)Set the connectVia property: The integration runtime reference.CosmosDbLinkedServicewithDatabase(Object database)Set the database property: The name of the database.CosmosDbLinkedServicewithDescription(String description)Set the description property: Linked service description.CosmosDbLinkedServicewithEncryptedCredential(Object encryptedCredential)Set the encryptedCredential property: The encrypted credential used for authentication.CosmosDbLinkedServicewithParameters(Map<String,ParameterSpecification> parameters)Set the parameters property: Parameters for linked service.CosmosDbLinkedServicewithServicePrincipalCredential(SecretBase servicePrincipalCredential)Set the servicePrincipalCredential property: The credential of the service principal object in Azure Active Directory.CosmosDbLinkedServicewithServicePrincipalCredentialType(CosmosDbServicePrincipalCredentialType servicePrincipalCredentialType)Set the servicePrincipalCredentialType property: The service principal credential type to use in Server-To-Server authentication.CosmosDbLinkedServicewithServicePrincipalId(Object servicePrincipalId)Set the servicePrincipalId property: The client ID of the application in Azure Active Directory used for Server-To-Server authentication.CosmosDbLinkedServicewithTenant(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:
withConnectViain 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:
withDescriptionin 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:
withParametersin 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:
withAnnotationsin 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.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classLinkedService- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-