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 java.lang.Object
The settings for Cosmos container.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettings
Throughput settings for container.
-
Constructor Summary
Constructors Constructor Description CosmosContainerSettings(CosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettings throughput)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContainerName()
java.lang.String
getPartitionKeyPath()
ThroughputSettings
getThroughput()
void
setContainerName(java.lang.String containerName)
Sets the container name.void
setPartitionKeyPath(java.lang.String partitionKeyPath)
Sets the container partition key path.void
setThroughput(CosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettings throughput)
Sets the container throughput settings.
-
-
-
Constructor Detail
-
CosmosContainerSettings
public CosmosContainerSettings(@Parameter @Nullable CosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettings throughput)
-
-
Method Detail
-
getContainerName
public java.lang.String getContainerName()
- Returns:
- the container name
-
setContainerName
public void setContainerName(java.lang.String containerName)
Sets the container name.- Parameters:
containerName
- the container name
-
getPartitionKeyPath
public java.lang.String getPartitionKeyPath()
- Returns:
- the partition key path for the container
-
setPartitionKeyPath
public void setPartitionKeyPath(java.lang.String partitionKeyPath)
Sets the container partition key path.- Parameters:
partitionKeyPath
- the partition key path
-
getThroughput
public ThroughputSettings getThroughput()
- Returns:
- container throughput settings
-
setThroughput
public void setThroughput(CosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettings throughput)
Sets the container throughput settings.- Parameters:
throughput
- the throughput settings
-
-