UniqueKeyPolicy Class
- java.
lang. Object - com.
azure. cosmos. models. UniqueKeyPolicy
- com.
public final class UniqueKeyPolicy
Represents the unique key policy configuration for specifying uniqueness constraints on items in the container in the Azure Cosmos DB service.
Constructor Summary
Constructor | Description |
---|---|
UniqueKeyPolicy() |
Instantiates a new Unique key policy. |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Unique |
getUniqueKeys()
Gets or sets container of UniqueKey that guarantee uniqueness of items in container in the Azure Cosmos DB service. |
Unique |
setUniqueKeys(List<UniqueKey> uniqueKeys)
Unique keys unique key policy. |
Methods inherited from java.lang.Object
Constructor Details
UniqueKeyPolicy
public UniqueKeyPolicy()
Instantiates a new Unique key policy.
Method Details
getUniqueKeys
public List
Gets or sets container of UniqueKey that guarantee uniqueness of items in container in the Azure Cosmos DB service.
Returns:
setUniqueKeys
public UniqueKeyPolicy setUniqueKeys(List
Unique keys unique key policy.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor