azure-docs-sdk-java/docs-ref-autogen/com.azure.cosmos.models.Uni...

62 строки
4.4 KiB
YAML

### YamlMime:JavaType
uid: "com.azure.cosmos.models.UniqueKeyPolicy"
fullName: "com.azure.cosmos.models.UniqueKeyPolicy"
name: "UniqueKeyPolicy"
nameWithType: "UniqueKeyPolicy"
summary: "Represents the unique key policy configuration for specifying uniqueness constraints on items in the container in the Azure Cosmos DB service."
inheritances:
- "<xref href=\"java.lang.Object?displayProperty=fullName\" data-throw-if-not-resolved=\"False\" />"
inheritedClassMethods:
- classRef: "java.lang.<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html\">Object</a>"
methodsRef:
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--\">clone</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-\">equals</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--\">finalize</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--\">getClass</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--\">hashCode</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--\">notify</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--\">notifyAll</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#toString--\">toString</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-\">wait</a>"
- "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-\">wait</a>"
syntax: "public final class **UniqueKeyPolicy**"
constructors:
- uid: "com.azure.cosmos.models.UniqueKeyPolicy.UniqueKeyPolicy()"
fullName: "com.azure.cosmos.models.UniqueKeyPolicy.UniqueKeyPolicy()"
name: "UniqueKeyPolicy()"
nameWithType: "UniqueKeyPolicy.UniqueKeyPolicy()"
summary: "Instantiates a new Unique key policy."
syntax: "public UniqueKeyPolicy()"
desc: "Instantiates a new Unique key policy."
methods:
- uid: "com.azure.cosmos.models.UniqueKeyPolicy.getUniqueKeys()"
fullName: "com.azure.cosmos.models.UniqueKeyPolicy.getUniqueKeys()"
name: "getUniqueKeys()"
nameWithType: "UniqueKeyPolicy.getUniqueKeys()"
summary: "Gets or sets container of <xref uid=\"com.azure.cosmos.models.UniqueKey\" data-throw-if-not-resolved=\"false\" data-raw-source=\"UniqueKey\"></xref> that guarantee uniqueness of items in container in the Azure Cosmos DB service."
syntax: "public List<UniqueKey> getUniqueKeys()"
desc: "Gets or sets container of <xref uid=\"com.azure.cosmos.models.UniqueKey\" data-throw-if-not-resolved=\"false\" data-raw-source=\"UniqueKey\"></xref> that guarantee uniqueness of items in container in the Azure Cosmos DB service."
returns:
description: "the unique keys."
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.cosmos.models.UniqueKey?alt=com.azure.cosmos.models.UniqueKey&text=UniqueKey\" data-throw-if-not-resolved=\"False\" />&gt;"
- uid: "com.azure.cosmos.models.UniqueKeyPolicy.setUniqueKeys(java.util.List<com.azure.cosmos.models.UniqueKey>)"
fullName: "com.azure.cosmos.models.UniqueKeyPolicy.setUniqueKeys(List<UniqueKey> uniqueKeys)"
name: "setUniqueKeys(List<UniqueKey> uniqueKeys)"
nameWithType: "UniqueKeyPolicy.setUniqueKeys(List<UniqueKey> uniqueKeys)"
summary: "Unique keys unique key policy."
parameters:
- description: "the unique keys"
name: "uniqueKeys"
type: "<a href=\"https://docs.oracle.com/javase/8/docs/api/java/util/List.html\">List</a>&lt;<xref href=\"com.azure.cosmos.models.UniqueKey?alt=com.azure.cosmos.models.UniqueKey&text=UniqueKey\" data-throw-if-not-resolved=\"False\" />&gt;"
syntax: "public UniqueKeyPolicy setUniqueKeys(List<UniqueKey> uniqueKeys)"
desc: "Unique keys unique key policy."
returns:
description: "the unique key policy"
type: "<xref href=\"com.azure.cosmos.models.UniqueKeyPolicy?alt=com.azure.cosmos.models.UniqueKeyPolicy&text=UniqueKeyPolicy\" data-throw-if-not-resolved=\"False\" />"
type: "class"
desc: "Represents the unique key policy configuration for specifying uniqueness constraints on items in the container in the Azure Cosmos DB service."
metadata: {}
package: "com.azure.cosmos.models"
artifact: com.azure:azure-cosmos:4.63.3