public class UniqueKeyPolicy extends JsonSerializable
Constructor and Description |
---|
UniqueKeyPolicy() |
Modifier and Type | Method and Description |
---|---|
Collection<UniqueKey> |
uniqueKeys()
Gets or sets collection of
UniqueKey that guarantee uniqueness of documents in collection
in the Azure Cosmos DB service. |
UniqueKeyPolicy |
uniqueKeys(List<UniqueKey> uniqueKeys)
Unique keys unique key policy.
|
get, getBoolean, getCollection, getDouble, getInt, getList, getLogger, getLong, getMap, getObject, getObjectByPath, getString, has, toJson, toJson, toObject, toString
public Collection<UniqueKey> uniqueKeys()
UniqueKey
that guarantee uniqueness of documents in collection
in the Azure Cosmos DB service.public UniqueKeyPolicy uniqueKeys(List<UniqueKey> uniqueKeys)
uniqueKeys
- the unique keysIllegalArgumentException
- thrown if an error occursCopyright © 2020 Microsoft Corporation. All rights reserved.