Class CertificateGet.Request
- java.lang.Object
-
- io.helidon.integrations.common.rest.ApiJsonBuilder<T>
-
- io.helidon.integrations.common.rest.ApiJsonRequest<T>
-
- io.helidon.integrations.vault.VaultRequest<CertificateGet.Request>
-
- io.helidon.integrations.vault.secrets.pki.CertificateGet.Request
-
- All Implemented Interfaces:
ApiRequest<CertificateGet.Request>
- Enclosing class:
- CertificateGet
public static final class CertificateGet.Request extends VaultRequest<CertificateGet.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 CertificateGet.Request
builder()
Fluent API builder for configuring a request.PkiFormat
format()
Requested format.CertificateGet.Request
format(PkiFormat format)
Format of the certificate to get.CertificateGet.Request
serialNumber(String serialNumber)
Serial number of the certificate to get.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 CertificateGet.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
-
format
public CertificateGet.Request format(PkiFormat format)
Format of the certificate to get.- Parameters:
format
- the required format- Returns:
- updated request
-
serialNumber
public CertificateGet.Request serialNumber(String serialNumber)
Serial number of the certificate to get.- Parameters:
serialNumber
- serial number- Returns:
- updated request
-
format
public PkiFormat format()
Requested format.- Returns:
- format that was requested
-
toJson
public Optional<JsonObject> toJson(JsonBuilderFactory factory)
Description copied from class:ApiJsonBuilder
Create a JSON object from this builder.- Specified by:
toJson
in interfaceApiRequest<CertificateGet.Request>
- Overrides:
toJson
in classApiJsonBuilder<CertificateGet.Request>
- Parameters:
factory
- builder factory to create objects- Returns:
- JSON object or empty
-
-