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.ObjectThe settings for Cosmos container.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCosmosDatabaseConfiguration.CosmosContainerSettings.ContainerThroughputSettingsThroughput 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.StringgetContainerName()java.lang.StringgetPartitionKeyPath()ThroughputSettingsgetThroughput()voidsetContainerName(java.lang.String containerName)Sets the container name.voidsetPartitionKeyPath(java.lang.String partitionKeyPath)Sets the container partition key path.voidsetThroughput(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
-
-