Class UniqueKeyPolicy
java.lang.Object
com.microsoft.azure.management.cosmosdb.UniqueKeyPolicy
The unique key policy configuration for specifying uniqueness constraints on
documents in the collection in the Azure Cosmos DB service.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet list of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.withUniqueKeys
(List<UniqueKey> uniqueKeys) Set list of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
-
Constructor Details
-
UniqueKeyPolicy
public UniqueKeyPolicy()
-
-
Method Details
-
uniqueKeys
Get list of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.- Returns:
- the uniqueKeys value
-
withUniqueKeys
Set list of unique keys on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.- Parameters:
uniqueKeys
- the uniqueKeys value to set- Returns:
- the UniqueKeyPolicy object itself.
-