Annotation Type Container
Annotation for Cosmos Container
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanTo set if create container automaticallybooleanTo 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 unitintTo 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 thePartitionKeyannotation By defaultPartitionKeyannotation 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
-