com.microsoft.azure.management.cosmosdb.ContainerPartitionKey Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-mgmt-cosmosdb Show documentation
Show all versions of azure-mgmt-cosmosdb Show documentation
This package contains Microsoft Azure CosmosDB SDK. A new set of management libraries are now Generally Available. For documentation on how to use the new libraries, please see https://aka.ms/azsdk/java/mgmt
/**
* 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.
*/
public class ContainerPartitionKey {
/**
* List of paths using which data within the container can be partitioned.
*/
@JsonProperty(value = "paths")
private List paths;
/**
* 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.
*/
@JsonProperty(value = "version")
private Integer version;
/**
* Get list of paths using which data within the container can be partitioned.
*
* @return the paths value
*/
public List paths() {
return this.paths;
}
/**
* 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 paths) {
this.paths = paths;
return this;
}
/**
* 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'.
*
* @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.
*
* @return the version value
*/
public Integer version() {
return this.version;
}
/**
* 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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy