Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.cosmosdb; import java.util.List; import com.fasterxml.jackson.annotation.JsonProperty;
The configuration of the partition key to be used for partitioning data into multiple partitions.
/** * The configuration of the partition key to be used for partitioning data into * multiple partitions. */
public class ContainerPartitionKey {
List of paths using which data within the container can be partitioned.
/** * List of paths using which data within the container can be partitioned. */
@JsonProperty(value = "paths") private List<String> paths;
Indicates the kind of algorithm used for partitioning. Possible values include: 'Hash', 'Range'.
/** * Indicates the kind of algorithm used for partitioning. Possible values * include: 'Hash', 'Range'. */
@JsonProperty(value = "kind") private PartitionKind kind;
Indicates the version of the partition key definition.
/** * Indicates the version of the partition key definition. */
@JsonProperty(value = "version") private Integer version;
Get list of paths using which data within the container can be partitioned.
Returns:the paths value
/** * Get list of paths using which data within the container can be partitioned. * * @return the paths value */
public List<String> paths() { return this.paths; }
Set list of paths using which data within the container can be partitioned.
Params:
  • paths – the paths value to set
Returns:the ContainerPartitionKey object itself.
/** * Set list of paths using which data within the container can be partitioned. * * @param paths the paths value to set * @return the ContainerPartitionKey object itself. */
public ContainerPartitionKey withPaths(List<String> paths) { this.paths = paths; return this; }
Get indicates the kind of algorithm used for partitioning. Possible values include: 'Hash', 'Range'.
Returns:the kind value
/** * Get indicates the kind of algorithm used for partitioning. Possible values include: 'Hash', 'Range'. * * @return the kind value */
public PartitionKind kind() { return this.kind; }
Set indicates the kind of algorithm used for partitioning. Possible values include: 'Hash', 'Range'.
Params:
  • kind – the kind value to set
Returns:the ContainerPartitionKey object itself.
/** * Set indicates the kind of algorithm used for partitioning. Possible values include: 'Hash', 'Range'. * * @param kind the kind value to set * @return the ContainerPartitionKey object itself. */
public ContainerPartitionKey withKind(PartitionKind kind) { this.kind = kind; return this; }
Get indicates the version of the partition key definition.
Returns:the version value
/** * Get indicates the version of the partition key definition. * * @return the version value */
public Integer version() { return this.version; }
Set indicates the version of the partition key definition.
Params:
  • version – the version value to set
Returns:the ContainerPartitionKey object itself.
/** * Set indicates the version of the partition key definition. * * @param version the version value to set * @return the ContainerPartitionKey object itself. */
public ContainerPartitionKey withVersion(Integer version) { this.version = version; return this; } }