public final class ContainerPartitionKey extends Object
| Constructor and Description |
|---|
ContainerPartitionKey() |
| Modifier and Type | Method and Description |
|---|---|
PartitionKind |
kind()
Get the kind property: Indicates the kind of algorithm used for partitioning.
|
List<String> |
paths()
Get the paths property: List of paths using which data within the container can be partitioned.
|
void |
validate()
Validates the instance.
|
Integer |
version()
Get the version property: Indicates the version of the partition key definition.
|
ContainerPartitionKey |
withKind(PartitionKind kind)
Set the kind property: Indicates the kind of algorithm used for partitioning.
|
ContainerPartitionKey |
withPaths(List<String> paths)
Set the paths property: List of paths using which data within the container can be partitioned.
|
ContainerPartitionKey |
withVersion(Integer version)
Set the version property: Indicates the version of the partition key definition.
|
public List<String> paths()
public ContainerPartitionKey withPaths(List<String> paths)
paths - the paths value to set.public PartitionKind kind()
public ContainerPartitionKey withKind(PartitionKind kind)
kind - the kind value to set.public Integer version()
public ContainerPartitionKey withVersion(Integer version)
version - the version value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.