UniqueKeyPolicy Class
- java.
lang. Object - JsonSerializable
- com.
microsoft. azure. cosmosdb. UniqueKeyPolicy
- 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. |
Method Summary
Modifier and Type | Method and Description |
---|---|
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) |
Inherited Members
Constructor Details
UniqueKeyPolicy
public UniqueKeyPolicy()
UniqueKeyPolicy
public UniqueKeyPolicy(String jsonString)
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:
Applies to
Azure SDK for Java