public class UniqueKeyPolicy extends JsonSerializable
| Constructor and Description |
|---|
UniqueKeyPolicy() |
UniqueKeyPolicy(String jsonString)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<UniqueKey> |
getUniqueKeys()
Gets or sets collection of
UniqueKey that guarantee uniqueness of documents in collection
in the Azure Cosmos DB service. |
void |
setUniqueKeys(Collection<UniqueKey> uniqueKeys) |
get, getBoolean, getCollection, getCollection, getDouble, getHashMap, getInt, getList, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toStringpublic UniqueKeyPolicy()
public UniqueKeyPolicy(String jsonString)
jsonString - the json string that represents the Unique Key policy.public Collection<UniqueKey> getUniqueKeys()
UniqueKey that guarantee uniqueness of documents in collection
in the Azure Cosmos DB service.public void setUniqueKeys(Collection<UniqueKey> uniqueKeys)
Copyright © 2019. All rights reserved.