Class UniqueKey
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.UniqueKey
-
public final class UniqueKey extends Object
The unique key on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
-
-
Constructor Summary
Constructors Constructor Description UniqueKey()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>paths()Get the paths property: List of paths must be unique for each document in the Azure Cosmos DB service.voidvalidate()Validates the instance.UniqueKeywithPaths(List<String> paths)Set the paths property: List of paths must be unique for each document in the Azure Cosmos DB service.
-
-
-
Method Detail
-
paths
public List<String> paths()
Get the paths property: List of paths must be unique for each document in the Azure Cosmos DB service.- Returns:
- the paths value.
-
withPaths
public UniqueKey withPaths(List<String> paths)
Set the paths property: List of paths must be unique for each document in the Azure Cosmos DB service.- Parameters:
paths- the paths value to set.- Returns:
- the UniqueKey object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-