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