@@ -26,6 +26,7 @@ public static record BackupCreate(
2626 @ SerializedName ("id" ) String id ,
2727 @ SerializedName ("include" ) List <String > includeCollections ,
2828 @ SerializedName ("exclude" ) List <String > excludeCollections ,
29+ @ SerializedName ("incremental_base_backup_id" ) String prefixIncremental ,
2930 @ SerializedName ("config" ) Config config ) {
3031
3132 private static record Config (
@@ -48,6 +49,7 @@ public BackupCreate(Builder builder) {
4849 builder .backupId ,
4950 builder .includeCollections ,
5051 builder .excludeCollections ,
52+ builder .prefixIncremental ,
5153 new Config (
5254 builder .cpuPercentage ,
5355 builder .compressionLevel ,
@@ -58,6 +60,7 @@ public BackupCreate(Builder builder) {
5860 public static class Builder implements ObjectBuilder <BackupCreate > {
5961 private final String backupId ;
6062
63+ private String prefixIncremental ;
6164 private Integer cpuPercentage ;
6265 private CompressionLevel compressionLevel ;
6366 private String bucket ;
@@ -69,6 +72,12 @@ public Builder(String backupId) {
6972 this .backupId = backupId ;
7073 }
7174
75+ /** Prefix for incremental backup IDs. */
76+ public Builder prefixIncremental (String prefixIncremental ) {
77+ this .prefixIncremental = prefixIncremental ;
78+ return this ;
79+ }
80+
7281 /** Collection that should be included in the backup. */
7382 public Builder includeCollections (String ... includeCollections ) {
7483 return includeCollections (Arrays .asList (includeCollections ));
0 commit comments