Class DbCreateRole.Request
java.lang.Object
io.helidon.integrations.common.rest.ApiJsonBuilder<T>
io.helidon.integrations.common.rest.ApiJsonRequest<T>
io.helidon.integrations.vault.VaultRequest<DbCreateRole.Request>
io.helidon.integrations.vault.secrets.database.DbCreateRole.Request
- All Implemented Interfaces:
ApiRequest<DbCreateRole.Request>
- Enclosing class:
- DbCreateRole
Request object. Can be configured with additional headers, query parameters etc.
-
Method Summary
Modifier and TypeMethodDescriptionaddCreationStatement
(String statement) Specifies the database statements executed to create and configure a user.addRenewStatement
(String statement) Specifies the database statements to be executed to renew a user.addRevocationStatement
(String statement) Specifies the database statements to be executed to revoke a user.addRollbackStatement
(String statement) Specifies the database statements to be executed to rollback a create operation in the event of an error.static DbCreateRole.Request
builder()
Fluent API builder for configuring a request.The name of the database.defaultTtl
(Duration defaultTtl) Specifies the TTL for the leases associated with this role.Specifies the maximum TTL for the leases associated with this role.Name of the credentials.Methods inherited from class io.helidon.integrations.vault.VaultRequest
add, addCommaDelimitedArray, addToCommaDelimitedArray, durationToTtl, preBuild
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonRequest
addHeader, addQueryParam, headers, queryParams, requestId, requestId, requestMediaType, requestMediaType, responseMediaType, responseMediaType
Methods inherited from class io.helidon.integrations.common.rest.ApiJsonBuilder
add, add, add, add, add, add, addBase64, addToArray, addToArray, addToArray, addToArray, addToArray, addToArray, addToObject, addToObject, addToObject, addToObject, addToObject, emptyArray, me, postBuild, toJson
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.integrations.common.rest.ApiRequest
toJson
-
Method Details
-
builder
Fluent API builder for configuring a request. The request builder is passed as is, without a build method. The equivalent of a build method isApiJsonBuilder.toJson(jakarta.json.JsonBuilderFactory)
used by theRestApi
.- Returns:
- new request builder
-
defaultTtl
Specifies the TTL for the leases associated with this role. Defaults to system/engine default TTL time.- Parameters:
defaultTtl
- default time to live- Returns:
- updated request
-
maxTtl
Specifies the maximum TTL for the leases associated with this role. Defaults to system/mount default TTL time; this value is allowed to be less than the mount max TTL (or, if not set, the system max TTL), but it is not allowed to be longer.- Parameters:
maxTtl
- maximal time to live- Returns:
- updated request
-
addCreationStatement
Specifies the database statements executed to create and configure a user. See the plugin's API page for more information on support and formatting for this parameter.- Parameters:
statement
- statement- Returns:
- updated request
-
addRevocationStatement
Specifies the database statements to be executed to revoke a user. See the plugin's API page for more information on support and formatting for this parameter.- Parameters:
statement
- statement- Returns:
- updated request
-
addRollbackStatement
Specifies the database statements to be executed to rollback a create operation in the event of an error. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter.- Parameters:
statement
- statement- Returns:
- updated request
-
addRenewStatement
Specifies the database statements to be executed to renew a user. Not every plugin type will support this functionality. See the plugin's API page for more information on support and formatting for this parameter.- Parameters:
statement
- statement- Returns:
- updated request
-
dbName
The name of the database.- Parameters:
dbName
- db name- Returns:
- updated request
-
name
Name of the credentials.- Parameters:
name
- the name- Returns:
- updated request
-