Package com.datastax.astra.internal.api
Class AstraApiEndpoint
java.lang.Object
com.datastax.astra.internal.api.AstraApiEndpoint
Create an endpoint to connect to a database.
-
Constructor Summary
ConstructorDescriptionDefault constructor.AstraApiEndpoint
(UUID databaseId, String databaseRegion, com.dtsx.astra.sdk.utils.AstraEnvironment env) Constructor with chunk of the URL. -
Method Summary
Modifier and TypeMethodDescriptionReturn the endpoint URL based on the chunks.Return the endpoint URL based on the chunks.static AstraApiEndpoint
Parse an endpoint URL to know information on the DB.
-
Constructor Details
-
AstraApiEndpoint
public AstraApiEndpoint()Default constructor. -
AstraApiEndpoint
public AstraApiEndpoint(UUID databaseId, String databaseRegion, com.dtsx.astra.sdk.utils.AstraEnvironment env) Constructor with chunk of the URL.- Parameters:
databaseId
- database identifierdatabaseRegion
- database regionenv
- environment
-
-
Method Details
-
parse
Parse an endpoint URL to know information on the DB.- Parameters:
endpointUrl
- endpoint URL copy from UI- Returns:
- astra db endpoint parsed
-
getApiEndPoint
Return the endpoint URL based on the chunks.- Returns:
- endpoint URL.
-
getOriginalEndPoint
Return the endpoint URL based on the chunks.- Returns:
- endpoint URL.
-