你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
UniqueKeyPolicy Class
- java.
lang. Object - com.
microsoft. azure. documentdb. JsonSerializable - com.
microsoft. azure. documentdb. UniqueKeyPolicy
- com.
- com.
public class UniqueKeyPolicy
extends JsonSerializable
Represents the unique key policy configuration for specifying uniqueness constraints on documents in the collection in the Azure Cosmos DB service.
Constructor Summary
Constructor | Description | |
---|---|---|
UniqueKeyPolicy() | ||
UniqueKeyPolicy(String jsonString) |
Constructor. |
|
UniqueKeyPolicy(JSONObject jsonObject) |
Constructor. |
Method Summary
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Unique |
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) |
Methods inherited from JsonSerializable
Methods inherited from java.lang.Object
Constructor Details
UniqueKeyPolicy
public UniqueKeyPolicy()
UniqueKeyPolicy
public UniqueKeyPolicy(String jsonString)
Constructor.
Parameters:
UniqueKeyPolicy
public UniqueKeyPolicy(JSONObject jsonObject)
Constructor.
Parameters:
Method Details
getUniqueKeys
public Collection
Gets or sets collection of UniqueKey that guarantee uniqueness of documents in collection in the Azure Cosmos DB service.
Returns:
setUniqueKeys
public void setUniqueKeys(Collection
Parameters: