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: