Freigeben über


UniqueKeyPolicy Class

  • java.lang.Object
    • com.azure.cosmos.models.UniqueKeyPolicy

public final class UniqueKeyPolicy

Represents the unique key policy configuration for specifying uniqueness constraints on items in the container in the Azure Cosmos DB service.

Constructor Summary

Constructor Description
UniqueKeyPolicy()

Instantiates a new Unique key policy.

Method Summary

Modifier and Type Method and Description
List<UniqueKey> getUniqueKeys()

Gets or sets container of UniqueKey that guarantee uniqueness of items in container in the Azure Cosmos DB service.

UniqueKeyPolicy setUniqueKeys(List<UniqueKey> uniqueKeys)

Unique keys unique key policy.

Methods inherited from java.lang.Object

Constructor Details

UniqueKeyPolicy

public UniqueKeyPolicy()

Instantiates a new Unique key policy.

Method Details

getUniqueKeys

public List getUniqueKeys()

Gets or sets container of UniqueKey that guarantee uniqueness of items in container in the Azure Cosmos DB service.

Returns:

the unique keys.

setUniqueKeys

public UniqueKeyPolicy setUniqueKeys(List uniqueKeys)

Unique keys unique key policy.

Parameters:

uniqueKeys - the unique keys

Returns:

the unique key policy

Applies to