File tree Expand file tree Collapse file tree 2 files changed +20
-8
lines changed
astra-sdk-devops/src/main/java/com/dtsx/astra/sdk/db/domain Expand file tree Collapse file tree 2 files changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -48,16 +48,18 @@ public class DatabaseCreationRequest {
4848 /** Keyspace name in database */
4949 private String keyspace ;
5050
51- /** Enable Vector preview for the db. */
52- private String engineType = null ;
53-
5451 /**
5552 * CapacityUnits is the amount of space available (horizontal scaling)
5653 * for the database. For free tier the max CU's is 1, and 100
5754 * for CXX/DXX the max is 12 on startup.
5855 */
5956 private int capacityUnits = 1 ;
6057
58+ /**
59+ * Default is null, if vector will be added
60+ */
61+ private DatabaseCreationType dbType ;
62+
6163 /**
6264 * default constructor.
6365 */
@@ -77,7 +79,7 @@ public DatabaseCreationRequest(DatabaseCreationBuilder builder) {
7779 this .region = builder .region ;
7880 this .tier = builder .tier ;
7981 if (builder .vector ) {
80- this .engineType = "cc" ;
82+ this .dbType = DatabaseCreationType . vector ;
8183 }
8284 }
8385
@@ -152,12 +154,13 @@ public String getRegion() {
152154 }
153155
154156 /**
155- * Gets engineType
157+ * Getter accessor for attribute 'dbType'.
156158 *
157- * @return value of engineType
159+ * @return
160+ * current value of 'dbType'
158161 */
159- public String getEngineType () {
160- return engineType ;
162+ public DatabaseCreationType getDbType () {
163+ return dbType ;
161164 }
162165
163166 /** {@inheritDoc} */
Original file line number Diff line number Diff line change 1+ package com .dtsx .astra .sdk .db .domain ;
2+
3+ /**
4+ * List of type available for vector.
5+ */
6+ public enum DatabaseCreationType {
7+
8+ vector
9+ }
You can’t perform that action at this time.
0 commit comments