### YamlMime:JavaType
uid: "com.azure.cosmos.models.PartitionKeyDefinition"
fullName: "com.azure.cosmos.models.PartitionKeyDefinition"
name: "PartitionKeyDefinition"
nameWithType: "PartitionKeyDefinition"
summary: "Represents a partition key definition in the Azure Cosmos DB database service."
inheritances:
- ""
inheritedClassMethods:
- classRef: "java.lang.Object"
methodsRef:
- "clone"
- "equals"
- "finalize"
- "getClass"
- "hashCode"
- "notify"
- "notifyAll"
- "toString"
- "wait"
- "wait"
- "wait"
syntax: "public final class **PartitionKeyDefinition**"
constructors:
- uid: "com.azure.cosmos.models.PartitionKeyDefinition.PartitionKeyDefinition()"
fullName: "com.azure.cosmos.models.PartitionKeyDefinition.PartitionKeyDefinition()"
name: "PartitionKeyDefinition()"
nameWithType: "PartitionKeyDefinition.PartitionKeyDefinition()"
summary: "Constructor."
syntax: "public PartitionKeyDefinition()"
desc: "Constructor. Creates a new instance of the PartitionKeyDefinition object."
methods:
- uid: "com.azure.cosmos.models.PartitionKeyDefinition.getKind()"
fullName: "com.azure.cosmos.models.PartitionKeyDefinition.getKind()"
name: "getKind()"
nameWithType: "PartitionKeyDefinition.getKind()"
summary: "Sets the partition algorithm used to calculate the partition id given a partition key."
syntax: "public PartitionKind getKind()"
desc: "Sets the partition algorithm used to calculate the partition id given a partition key."
returns:
description: "the partition algorithm."
type: ""
- uid: "com.azure.cosmos.models.PartitionKeyDefinition.getPaths()"
fullName: "com.azure.cosmos.models.PartitionKeyDefinition.getPaths()"
name: "getPaths()"
nameWithType: "PartitionKeyDefinition.getPaths()"
summary: "Gets the item property paths for the partition key."
syntax: "public List getPaths()"
desc: "Gets the item property paths for the partition key."
returns:
description: "the paths to the item properties that form the partition key."
type: "List<String>"
- uid: "com.azure.cosmos.models.PartitionKeyDefinition.getVersion()"
fullName: "com.azure.cosmos.models.PartitionKeyDefinition.getVersion()"
name: "getVersion()"
nameWithType: "PartitionKeyDefinition.getVersion()"
summary: "Gets version."
syntax: "public PartitionKeyDefinitionVersion getVersion()"
desc: "Gets version."
returns:
description: "the "
type: ""
- uid: "com.azure.cosmos.models.PartitionKeyDefinition.setKind(com.azure.cosmos.models.PartitionKind)"
fullName: "com.azure.cosmos.models.PartitionKeyDefinition.setKind(PartitionKind kind)"
name: "setKind(PartitionKind kind)"
nameWithType: "PartitionKeyDefinition.setKind(PartitionKind kind)"
summary: "Sets the partition algorithm used to calculate the partition id given a partition key."
parameters:
- description: "the partition algorithm."
name: "kind"
type: ""
syntax: "public PartitionKeyDefinition setKind(PartitionKind kind)"
desc: "Sets the partition algorithm used to calculate the partition id given a partition key."
returns:
description: "this PartitionKeyDefinition."
type: ""
- uid: "com.azure.cosmos.models.PartitionKeyDefinition.setPaths(java.util.List)"
fullName: "com.azure.cosmos.models.PartitionKeyDefinition.setPaths(List paths)"
name: "setPaths(List paths)"
nameWithType: "PartitionKeyDefinition.setPaths(List paths)"
summary: "Sets the item property paths for the partition key."
parameters:
- description: "the paths to item properties that form the partition key."
name: "paths"
type: "List<String>"
syntax: "public PartitionKeyDefinition setPaths(List paths)"
desc: "Sets the item property paths for the partition key."
returns:
description: "this PartitionKeyDefinition."
type: ""
- uid: "com.azure.cosmos.models.PartitionKeyDefinition.setVersion(com.azure.cosmos.models.PartitionKeyDefinitionVersion)"
fullName: "com.azure.cosmos.models.PartitionKeyDefinition.setVersion(PartitionKeyDefinitionVersion version)"
name: "setVersion(PartitionKeyDefinitionVersion version)"
nameWithType: "PartitionKeyDefinition.setVersion(PartitionKeyDefinitionVersion version)"
summary: "Sets version."
parameters:
- description: "the version"
name: "version"
type: ""
syntax: "public PartitionKeyDefinition setVersion(PartitionKeyDefinitionVersion version)"
desc: "Sets version."
returns:
description: "the version"
type: ""
type: "class"
desc: "Represents a partition key definition in the Azure Cosmos DB database service. A partition key definition specifies which item property is used as the partition key in a container that has multiple partitions."
metadata: {}
package: "com.azure.cosmos.models"
artifact: com.azure:azure-cosmos:4.63.4