Interface DsqlUtilities
-
- All Known Implementing Classes:
DefaultDsqlUtilities
public interface DsqlUtilitiesUtilities for working with DSQL. An instance of this class can be created by:1) Using the low-level client
DsqlClient.utilities()(orDsqlAsyncClient.utilities()} method. This is recommended as SDK will use the same configuration from theDsqlClientobject to create theDsqlUtilitiesobject.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceDsqlUtilities.BuilderBuilder for creating an instance ofDsqlUtilities.
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description static DsqlUtilities.Builderbuilder()Create a builder that can be used to configure and create aDsqlUtilities.default StringgenerateDbConnectAdminAuthToken(Consumer<GenerateAuthTokenRequest.Builder> request)Generates an admin authentication token for IAM authentication to an DSQL database.default StringgenerateDbConnectAdminAuthToken(GenerateAuthTokenRequest request)Generates an admin authentication token for IAM authentication to an DSQL database.default StringgenerateDbConnectAuthToken(Consumer<GenerateAuthTokenRequest.Builder> request)Generates an authentication token for IAM authentication to an DSQL database.default StringgenerateDbConnectAuthToken(GenerateAuthTokenRequest request)Generates an authentication token for IAM authentication to an DSQL database.
-
-
-
Method Detail
-
builder
static DsqlUtilities.Builder builder()
Create a builder that can be used to configure and create aDsqlUtilities.
-
generateDbConnectAuthToken
default String generateDbConnectAuthToken(Consumer<GenerateAuthTokenRequest.Builder> request)
Generates an authentication token for IAM authentication to an DSQL database.- Parameters:
request- The request used to generate the authentication token- Returns:
- String to use as the DSQL authentication token
- Throws:
IllegalArgumentException- if the required parameters are not valid
-
generateDbConnectAuthToken
default String generateDbConnectAuthToken(GenerateAuthTokenRequest request)
Generates an authentication token for IAM authentication to an DSQL database.- Parameters:
request- The request used to generate the authentication token- Returns:
- String to use as the DSQL authentication token
- Throws:
IllegalArgumentException- if the required parameters are not valid
-
generateDbConnectAdminAuthToken
default String generateDbConnectAdminAuthToken(Consumer<GenerateAuthTokenRequest.Builder> request)
Generates an admin authentication token for IAM authentication to an DSQL database.- Parameters:
request- The request used to generate the admin authentication token- Returns:
- String to use as the DSQL authentication token
- Throws:
IllegalArgumentException- if the required parameters are not valid
-
generateDbConnectAdminAuthToken
default String generateDbConnectAdminAuthToken(GenerateAuthTokenRequest request)
Generates an admin authentication token for IAM authentication to an DSQL database.- Parameters:
request- The request used to generate the admin authentication token- Returns:
- String to use as the DSQL authentication token
- Throws:
IllegalArgumentException- if the required parameters are not valid
-
-