Class CosmosDbDataConnection
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.kusto.fluent.models.DataConnectionInner
com.azure.resourcemanager.kusto.models.CosmosDbDataConnection
Class representing a CosmosDb data connection.
-
Constructor Summary
ConstructorDescriptionCreates an instance of CosmosDbDataConnection class. -
Method Summary
Modifier and TypeMethodDescriptionGet the cosmosDbAccountResourceId property: The resource ID of the Cosmos DB account used to create the data connection.Get the cosmosDbContainer property: The name of an existing container in the Cosmos DB database.Get the cosmosDbDatabase property: The name of an existing database in the Cosmos DB account.Get the managedIdentityObjectId property: The object ID of the managed identity resource.Get the managedIdentityResourceId property: The resource ID of a managed system or user-assigned identity.Get the mappingRuleName property: The name of an existing mapping rule to use when ingesting the retrieved data.Get the provisioningState property: The provisioned state of the resource.Get the retrievalStartDate property: Optional.Get the tableName property: The case-sensitive name of the existing target table in your cluster.void
validate()
Validates the instance.withCosmosDbAccountResourceId
(String cosmosDbAccountResourceId) Set the cosmosDbAccountResourceId property: The resource ID of the Cosmos DB account used to create the data connection.withCosmosDbContainer
(String cosmosDbContainer) Set the cosmosDbContainer property: The name of an existing container in the Cosmos DB database.withCosmosDbDatabase
(String cosmosDbDatabase) Set the cosmosDbDatabase property: The name of an existing database in the Cosmos DB account.withLocation
(String location) Set the location property: Resource location.withManagedIdentityResourceId
(String managedIdentityResourceId) Set the managedIdentityResourceId property: The resource ID of a managed system or user-assigned identity.withMappingRuleName
(String mappingRuleName) Set the mappingRuleName property: The name of an existing mapping rule to use when ingesting the retrieved data.withRetrievalStartDate
(OffsetDateTime retrievalStartDate) Set the retrievalStartDate property: Optional.withTableName
(String tableName) Set the tableName property: The case-sensitive name of the existing target table in your cluster.Methods inherited from class com.azure.resourcemanager.kusto.fluent.models.DataConnectionInner
location
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
CosmosDbDataConnection
public CosmosDbDataConnection()Creates an instance of CosmosDbDataConnection class.
-
-
Method Details
-
withLocation
Set the location property: Resource location.- Overrides:
withLocation
in classDataConnectionInner
- Parameters:
location
- the location value to set.- Returns:
- the DataConnectionInner object itself.
-
tableName
Get the tableName property: The case-sensitive name of the existing target table in your cluster. Retrieved data is ingested into this table.- Returns:
- the tableName value.
-
withTableName
Set the tableName property: The case-sensitive name of the existing target table in your cluster. Retrieved data is ingested into this table.- Parameters:
tableName
- the tableName value to set.- Returns:
- the CosmosDbDataConnection object itself.
-
mappingRuleName
Get the mappingRuleName property: The name of an existing mapping rule to use when ingesting the retrieved data.- Returns:
- the mappingRuleName value.
-
withMappingRuleName
Set the mappingRuleName property: The name of an existing mapping rule to use when ingesting the retrieved data.- Parameters:
mappingRuleName
- the mappingRuleName value to set.- Returns:
- the CosmosDbDataConnection object itself.
-
managedIdentityResourceId
Get the managedIdentityResourceId property: The resource ID of a managed system or user-assigned identity. The identity is used to authenticate with Cosmos DB.- Returns:
- the managedIdentityResourceId value.
-
withManagedIdentityResourceId
Set the managedIdentityResourceId property: The resource ID of a managed system or user-assigned identity. The identity is used to authenticate with Cosmos DB.- Parameters:
managedIdentityResourceId
- the managedIdentityResourceId value to set.- Returns:
- the CosmosDbDataConnection object itself.
-
managedIdentityObjectId
Get the managedIdentityObjectId property: The object ID of the managed identity resource.- Returns:
- the managedIdentityObjectId value.
-
cosmosDbAccountResourceId
Get the cosmosDbAccountResourceId property: The resource ID of the Cosmos DB account used to create the data connection.- Returns:
- the cosmosDbAccountResourceId value.
-
withCosmosDbAccountResourceId
Set the cosmosDbAccountResourceId property: The resource ID of the Cosmos DB account used to create the data connection.- Parameters:
cosmosDbAccountResourceId
- the cosmosDbAccountResourceId value to set.- Returns:
- the CosmosDbDataConnection object itself.
-
cosmosDbDatabase
Get the cosmosDbDatabase property: The name of an existing database in the Cosmos DB account.- Returns:
- the cosmosDbDatabase value.
-
withCosmosDbDatabase
Set the cosmosDbDatabase property: The name of an existing database in the Cosmos DB account.- Parameters:
cosmosDbDatabase
- the cosmosDbDatabase value to set.- Returns:
- the CosmosDbDataConnection object itself.
-
cosmosDbContainer
Get the cosmosDbContainer property: The name of an existing container in the Cosmos DB database.- Returns:
- the cosmosDbContainer value.
-
withCosmosDbContainer
Set the cosmosDbContainer property: The name of an existing container in the Cosmos DB database.- Parameters:
cosmosDbContainer
- the cosmosDbContainer value to set.- Returns:
- the CosmosDbDataConnection object itself.
-
retrievalStartDate
Get the retrievalStartDate property: Optional. If defined, the data connection retrieves Cosmos DB documents created or updated after the specified retrieval start date.- Returns:
- the retrievalStartDate value.
-
withRetrievalStartDate
Set the retrievalStartDate property: Optional. If defined, the data connection retrieves Cosmos DB documents created or updated after the specified retrieval start date.- Parameters:
retrievalStartDate
- the retrievalStartDate value to set.- Returns:
- the CosmosDbDataConnection object itself.
-
provisioningState
Get the provisioningState property: The provisioned state of the resource.- Returns:
- the provisioningState value.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classDataConnectionInner
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-