public final class UniqueKeyPolicy extends Object
| Constructor and Description |
|---|
UniqueKeyPolicy() |
| Modifier and Type | Method and Description |
|---|---|
List<UniqueKey> |
uniqueKeys()
Get the uniqueKeys property: List of unique keys on that enforces uniqueness constraint on documents in the
collection in the Azure Cosmos DB service.
|
void |
validate()
Validates the instance.
|
UniqueKeyPolicy |
withUniqueKeys(List<UniqueKey> uniqueKeys)
Set the uniqueKeys property: List of unique keys on that enforces uniqueness constraint on documents in the
collection in the Azure Cosmos DB service.
|
public List<UniqueKey> uniqueKeys()
public UniqueKeyPolicy withUniqueKeys(List<UniqueKey> uniqueKeys)
uniqueKeys - the uniqueKeys value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.