Class MongoDbV2LinkedService
java.lang.Object
com.azure.resourcemanager.datafactory.models.LinkedService
com.azure.resourcemanager.datafactory.models.MongoDbV2LinkedService
Linked service for MongoDB data source.
-
Constructor Summary
ConstructorDescriptionCreates an instance of MongoDbV2LinkedService class. -
Method Summary
Modifier and TypeMethodDescriptionGet the connectionString property: The MongoDB connection string.database()
Get the database property: The name of the MongoDB database that you want to access.void
validate()
Validates the instance.withAnnotations
(List<Object> annotations) Set the annotations property: List of tags that can be used for describing the linked service.withConnectionString
(Object connectionString) Set the connectionString property: The MongoDB connection string.withConnectVia
(IntegrationRuntimeReference connectVia) Set the connectVia property: The integration runtime reference.withDatabase
(Object database) Set the database property: The name of the MongoDB database that you want to access.withDescription
(String description) Set the description property: Linked service description.withParameters
(Map<String, ParameterSpecification> parameters) Set the parameters property: Parameters for linked service.Methods inherited from class com.azure.resourcemanager.datafactory.models.LinkedService
additionalProperties, annotations, connectVia, description, parameters, withAdditionalProperties
-
Constructor Details
-
MongoDbV2LinkedService
public MongoDbV2LinkedService()Creates an instance of MongoDbV2LinkedService 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 MongoDB connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference.- Returns:
- the connectionString value.
-
withConnectionString
Set the connectionString property: The MongoDB connection string. Type: string, SecureString or AzureKeyVaultSecretReference. Type: string, SecureString or AzureKeyVaultSecretReference.- Parameters:
connectionString
- the connectionString value to set.- Returns:
- the MongoDbV2LinkedService object itself.
-
database
Get the database property: The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string).- Returns:
- the database value.
-
withDatabase
Set the database property: The name of the MongoDB database that you want to access. Type: string (or Expression with resultType string).- Parameters:
database
- the database value to set.- Returns:
- the MongoDbV2LinkedService object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classLinkedService
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-