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
Nested ClassesModifier and TypeClassDescriptionstatic final classThroughput settings for container. -
Constructor Summary
ConstructorsConstructorDescriptionCosmosContainerSettings(CosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettings throughput) -
Method Summary
Modifier and TypeMethodDescriptionvoidsetContainerName(String containerName) Sets the container name.voidsetPartitionKeyPath(String partitionKeyPath) Sets the container partition key path.voidsetThroughput(CosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettings throughput) Sets the container throughput settings.
-
Constructor Details
-
CosmosContainerSettings
public CosmosContainerSettings(@Parameter @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
-