Class OciRequestBase<T extends OciRequestBase<T>>
java.lang.Object
io.helidon.integrations.common.rest.ApiJsonBuilder<T>
io.helidon.integrations.common.rest.ApiJsonRequest<T>
io.helidon.integrations.oci.connect.OciRequestBase<T>
- Type Parameters:
T- type of the request
- All Implemented Interfaces:
ApiRequest<T>
- Direct Known Subclasses:
CreateSecret.Request,Decrypt.Request,DeleteSecret.Request,Encrypt.Request,GenerateAutonomousDatabaseWallet.Request,GetBucket.Request,GetKey.Request,GetSecret.Request,GetSecretBundle.Request,GetVault.Request,ObjectRequest,PostMetricData.Request,Sign.Request,Verify.Request
A base for OCI requests that acts as a builder.
Adds support for
retryToken.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TAdd a timestamp to the JSON.endpoint()Endpoint (if configured).Override the endpoint to use for this request.hostFormat(String hostFormat) Host format to use.hostPrefix(String hostPrefix) Host prefix to use.retryToken(String retryToken) Retry token to support idempotent request when updating data.Methods inherited from class io.helidon.integrations.common.rest.ApiJsonRequest
addHeader, addQueryParam, headers, queryParams, requestId, requestId, requestMediaType, requestMediaType, responseMediaType, responseMediaTypeMethods 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, toJsonMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.integrations.common.rest.ApiRequest
toJson
-
Constructor Details
-
OciRequestBase
protected OciRequestBase()
-
-
Method Details
-
retryToken
Retry token to support idempotent request when updating data.- Parameters:
retryToken- retry token- Returns:
- updated request
-
hostPrefix
Host prefix to use. This is intended for API implementation and allows override of the default host prefix (for example in Vault API, we may use two different prefixes).- Parameters:
hostPrefix- host prefix- Returns:
- updated request
-
hostFormat
Host format to use. Domain specific APIs must define a host format for each request.- Parameters:
hostFormat- host format- Returns:
- updated request
-
endpoint
Override the endpoint to use for this request.- Parameters:
endpoint- full endpoint to override the default- Returns:
- updated builder
-
add
Add a timestamp to the JSON. Uses the timestamp as defined in OCI API.- Parameters:
name- name of the propertyinstant- instant value- Returns:
- updated request
-
endpoint
Endpoint (if configured).- Returns:
- configured endpoint or empty
-