Annotation Type Container
-
@Inherited @Retention(RUNTIME) @Target(TYPE) public @interface Container
Annotation for Cosmos Container
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanautoCreateContainerTo set if create container automaticallybooleanautoScaleTo enable auto scale for container RU limitStringcontainerNameTo set container nameStringpartitionKeyPathTo set the partition key definition for container Should only be used for nested partition key scenario.StringruTo set request unitinttimeToLiveTo set the ttl of container level
-
-
-
Element Detail
-
containerName
String containerName
To set container name- Returns:
- String
- Default:
- ""
-
-
-
ru
String ru
To set request unit- Returns:
- default as ""
- Default:
- ""
-
-
-
partitionKeyPath
String partitionKeyPath
To 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:
- ""
-
-