Package com.dtsx.astra.sdk.db.domain
Class DatabaseCreationBuilder
java.lang.Object
com.dtsx.astra.sdk.db.domain.DatabaseCreationBuilder
- Author:
- Cedrick LUNVEN (@clunven)
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected CloudProviderType
CloudProvider where the database lives.static final CloudProviderType
Default cloud.static final String
Default region.static final String
Default tier.protected String
Keyspace name in databaseprotected String
Name of the database--user friendly identifier.protected String
Region.protected String
Database type.protected boolean
Option to enable the vector preview. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the immutable beans.capacityUnit
(int unit) Build from the capacity unit.cloudProvider
(CloudProviderType cloudProvider) Build from the cloudProvider.cloudRegion
(String region) Build from the region.Build from the keyspace.Build from the name.Build from the tier.Enable Vector.
-
Field Details
-
DEFAULT_REGION
Default region.- See Also:
-
DEFAULT_TIER
Default tier.- See Also:
-
DEFAULT_CLOUD
Default cloud. -
cloudProvider
CloudProvider where the database lives. -
region
Region. -
tier
Database type. -
name
Name of the database--user friendly identifier. -
keyspace
Keyspace name in database -
vector
protected boolean vectorOption to enable the vector preview. -
capacityUnits
protected int capacityUnits
-
-
Constructor Details
-
DatabaseCreationBuilder
public DatabaseCreationBuilder()Default constructor.
-
-
Method Details
-
name
Build from the name.- Parameters:
name
- target db name.- Returns:
- current instance
-
keyspace
Build from the keyspace.- Parameters:
keyspace
- target database keyspace.- Returns:
- current instance
-
cloudProvider
Build from the cloudProvider.- Parameters:
cloudProvider
- target db cloudProvider.- Returns:
- current instance
-
tier
Build from the tier.- Parameters:
tier
- target db tier.- Returns:
- current instance
-
cloudRegion
Build from the region.- Parameters:
region
- target db region.- Returns:
- current instance
-
capacityUnit
Build from the capacity unit.- Parameters:
unit
- target unit region.- Returns:
- current instance
-
withVector
Enable Vector.- Returns:
- database creation request
-
build
Build the immutable beans.- Returns:
- the immutable instance
-