Class AstraApiEndpoint

java.lang.Object
com.datastax.astra.internal.api.AstraApiEndpoint

public class AstraApiEndpoint extends Object
Create an endpoint to connect to a database.
  • Constructor Details Link icon

    • AstraApiEndpoint Link icon

      public AstraApiEndpoint()
      Default constructor.
    • AstraApiEndpoint Link icon

      public AstraApiEndpoint(UUID databaseId, String databaseRegion, com.dtsx.astra.sdk.utils.AstraEnvironment env)
      Constructor with chunk of the URL.
      Parameters:
      databaseId - database identifier
      databaseRegion - database region
      env - environment
  • Method Details Link icon

    • parse Link icon

      public static AstraApiEndpoint parse(String endpointUrl)
      Parse an endpoint URL to know information on the DB.
      Parameters:
      endpointUrl - endpoint URL copy from UI
      Returns:
      astra db endpoint parsed
    • getApiEndPoint Link icon

      public String getApiEndPoint()
      Return the endpoint URL based on the chunks.
      Returns:
      endpoint URL.
    • getOriginalEndPoint Link icon

      public String getOriginalEndPoint()
      Return the endpoint URL based on the chunks.
      Returns:
      endpoint URL.