UniqueKey Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. UniqueKey
- com.
Implements
public final class UniqueKey
implements JsonSerializable<UniqueKey>
The unique key on that enforces uniqueness constraint on documents in the collection in the Azure Cosmos DB service.
Constructor Summary
Constructor | Description |
---|---|
UniqueKey() |
Creates an instance of Unique |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Unique |
fromJson(JsonReader jsonReader)
Reads an instance of Unique |
List<String> |
paths()
Get the paths property: List of paths must be unique for each document in the Azure Cosmos DB service. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Unique |
withPaths(List<String> paths)
Set the paths property: List of paths must be unique for each document in the Azure Cosmos DB service. |
Methods inherited from java.lang.Object
Constructor Details
UniqueKey
public UniqueKey()
Creates an instance of UniqueKey class.
Method Details
fromJson
public static UniqueKey fromJson(JsonReader jsonReader)
Reads an instance of UniqueKey from the JsonReader.
Parameters:
Returns:
Throws:
paths
public List
Get the paths property: List of paths must be unique for each document in the Azure Cosmos DB service.
Returns:
toJson
validate
public void validate()
Validates the instance.
withPaths
public UniqueKey withPaths(List
Set the paths property: List of paths must be unique for each document in the Azure Cosmos DB service.
Parameters:
Returns:
Applies to
Azure SDK for Java