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, getLogger, getLong, getMapper, getObject, getObject, getObjectByPath, getString, has, remove, set, toJson, toJson, toObject, toString
public 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 © 2018. All rights reserved.