Class GetKey.Request
- java.lang.Object
-
- io.helidon.integrations.common.rest.ApiJsonBuilder<T>
-
- io.helidon.integrations.common.rest.ApiJsonRequest<T>
-
- io.helidon.integrations.oci.connect.OciRequestBase<GetKey.Request>
-
- io.helidon.integrations.oci.vault.GetKey.Request
-
- All Implemented Interfaces:
ApiRequest<GetKey.Request>
- Enclosing class:
- GetKey
public static class GetKey.Request extends OciRequestBase<GetKey.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 GetKey.Request
builder()
Fluent API builder for configuring a request.static GetKey.Request
create(String keyId)
Create a new request for Key OCID.GetKey.Request
keyId(String keyId)
Key OCID.Optional<JsonObject>
toJson(JsonBuilderFactory factory)
Create a JSON object from this builder.-
Methods inherited from class io.helidon.integrations.oci.connect.OciRequestBase
add, endpoint, endpoint, hostFormat, hostPrefix, retryToken
-
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, preBuild
-
-
-
-
Method Detail
-
builder
public static GetKey.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 GetKey.Request create(String keyId)
Create a new request for Key OCID.- Parameters:
keyId
- key OCID- Returns:
- a new request
-
keyId
public GetKey.Request keyId(String keyId)
Key OCID.- Parameters:
keyId
- key OCID- 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<GetKey.Request>
- Overrides:
toJson
in classApiJsonBuilder<GetKey.Request>
- Parameters:
factory
- builder factory to create objects- Returns:
- JSON object or empty
-
-