public final class UniqueKeyPolicy extends Object
Constructor and Description |
---|
UniqueKeyPolicy()
Instantiates a new Unique key policy.
|
Modifier and Type | Method and Description |
---|---|
List<UniqueKey> |
getUniqueKeys()
Gets or sets container of
UniqueKey that guarantee uniqueness of items in container
in the Azure Cosmos DB service. |
UniqueKeyPolicy |
setUniqueKeys(List<UniqueKey> uniqueKeys)
Unique keys unique key policy.
|
public List<UniqueKey> getUniqueKeys()
UniqueKey
that guarantee uniqueness of items in container
in the Azure Cosmos DB service.public UniqueKeyPolicy setUniqueKeys(List<UniqueKey> uniqueKeys)
uniqueKeys
- the unique keysIllegalArgumentException
- thrown if an error occursCopyright © 2021 Microsoft Corporation. All rights reserved.