Annotation Type Container
Annotation for Cosmos Container
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
To set if create container automaticallyboolean
To enable auto scale for container RU limitTo set container nameTo set the partition key definition for container Should only be used for nested partition key scenario.To set request unitint
To set the ttl of container level
-
Element Details
-
containerName
String containerNameTo set container name- Returns:
- String
- Default:
- ""
-
ru
String ruTo set request unit- Returns:
- default as ""
- Default:
- ""
-
timeToLive
int timeToLiveTo set the ttl of container level- Returns:
- default as no ttl
- Default:
- -1
-
autoCreateContainer
boolean autoCreateContainerTo set if create container automatically- Returns:
- default as true
- Default:
- true
-
partitionKeyPath
String partitionKeyPathTo set the partition key definition for container Should only be used for nested partition key scenario. For general partition key support, use thePartitionKey
annotation By defaultPartitionKey
annotation will take precedence, unless not specified.- Returns:
- partition key path
- Default:
- ""
-
autoScale
boolean autoScaleTo enable auto scale for container RU limit- Returns:
- default as false
- Default:
- false
-