Class DeleteTokenRole.Request
- java.lang.Object
-
- io.helidon.integrations.common.rest.ApiJsonBuilder<T>
-
- io.helidon.integrations.common.rest.ApiJsonRequest<T>
-
- io.helidon.integrations.vault.VaultRequest<DeleteTokenRole.Request>
-
- io.helidon.integrations.vault.auths.token.DeleteTokenRole.Request
-
- All Implemented Interfaces:
ApiRequest<DeleteTokenRole.Request>
- Enclosing class:
- DeleteTokenRole
public static class DeleteTokenRole.Request extends VaultRequest<DeleteTokenRole.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 static DeleteTokenRole.Request
builder()
Fluent API builder for configuring a request.static DeleteTokenRole.Request
create(String roleName)
Create a new request with role name.DeleteTokenRole.Request
roleName(String roleName)
The name of the token role.Optional<JsonObject>
toJson(JsonBuilderFactory factory)
Create a JSON object from this builder.-
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
-
-
-
-
Method Detail
-
builder
public static DeleteTokenRole.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 istoJson(javax.json.JsonBuilderFactory)
used by theRestApi
.- Returns:
- new request builder
-
create
public static DeleteTokenRole.Request create(String roleName)
Create a new request with role name.- Parameters:
roleName
- role name- Returns:
- a new request
-
roleName
public DeleteTokenRole.Request roleName(String roleName)
The name of the token role.- Parameters:
roleName
- role name- Returns:
- updated request
-
toJson
public Optional<JsonObject> toJson(JsonBuilderFactory factory)
Description copied from class:ApiJsonBuilder
Create a JSON object from this builder.- Specified by:
toJson
in interfaceApiRequest<DeleteTokenRole.Request>
- Overrides:
toJson
in classApiJsonBuilder<DeleteTokenRole.Request>
- Parameters:
factory
- builder factory to create objects- Returns:
- JSON object or empty
-
-