Package io.micronaut.data.cosmos.config
Class CosmosDatabaseConfiguration.CosmosContainerSettings
java.lang.Object
io.micronaut.data.cosmos.config.CosmosDatabaseConfiguration.CosmosContainerSettings
- Enclosing class:
- CosmosDatabaseConfiguration
@EachProperty(value="container-settings",
list=true)
public static class CosmosDatabaseConfiguration.CosmosContainerSettings
extends Object
The settings for Cosmos container.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Throughput settings for container. -
Constructor Summary
ConstructorDescriptionCosmosContainerSettings
(@Nullable CosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettings throughput) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setContainerName
(String containerName) Sets the container name.void
setPartitionKeyPath
(String partitionKeyPath) Sets the container partition key path.void
setThroughput
(CosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettings throughput) Sets the container throughput settings.
-
Constructor Details
-
CosmosContainerSettings
public CosmosContainerSettings(@Parameter @Nullable @Nullable CosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettings throughput)
-
-
Method Details
-
getContainerName
- Returns:
- the container name
-
setContainerName
Sets the container name.- Parameters:
containerName
- the container name
-
getPartitionKeyPath
- Returns:
- the partition key path for the container
-
setPartitionKeyPath
Sets the container partition key path.- Parameters:
partitionKeyPath
- the partition key path
-
getThroughput
- Returns:
- container throughput settings
-
setThroughput
public void setThroughput(CosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettings throughput) Sets the container throughput settings.- Parameters:
throughput
- the throughput settings
-