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
public static final class DbCreateRole.Request extends VaultRequest<DbCreateRole.Request>
Request object. Can be configured with additional headers, query parameters etc.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DbCreateRole.Request
addCreationStatement(String statement)
Specifies the database statements executed to create and configure a user.DbCreateRole.Request
addRenewStatement(String statement)
Specifies the database statements to be executed to renew a user.DbCreateRole.Request
addRevocationStatement(String statement)
Specifies the database statements to be executed to revoke a user.DbCreateRole.Request
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.DbCreateRole.Request
dbName(String dbName)
The name of the database.DbCreateRole.Request
defaultTtl(Duration defaultTtl)
Specifies the TTL for the leases associated with this role.DbCreateRole.Request
maxTtl(Duration maxTtl)
Specifies the maximum TTL for the leases associated with this role.DbCreateRole.Request
name(String name)
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 Detail
-
builder
public static DbCreateRole.Request 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(javax.json.JsonBuilderFactory)
used by theRestApi
.- Returns:
- new request builder
-
defaultTtl
public DbCreateRole.Request defaultTtl(Duration 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
public DbCreateRole.Request maxTtl(Duration 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
public DbCreateRole.Request addCreationStatement(String statement)
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
public DbCreateRole.Request addRevocationStatement(String statement)
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
public DbCreateRole.Request addRollbackStatement(String statement)
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
public DbCreateRole.Request addRenewStatement(String statement)
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
public DbCreateRole.Request dbName(String dbName)
The name of the database.- Parameters:
dbName
- db name- Returns:
- updated request
-
name
public DbCreateRole.Request name(String name)
Name of the credentials.- Parameters:
name
- the name- Returns:
- updated request
-
-