Class OciMetricsRx.Builder
java.lang.Object
io.helidon.integrations.oci.telemetry.OciMetricsRx.Builder
- All Implemented Interfaces:
Builder<OciMetricsRx.Builder,,OciMetricsRx> Supplier<OciMetricsRx>
- Enclosing interface:
- OciMetricsRx
public static class OciMetricsRx.Builder
extends Object
implements Builder<OciMetricsRx.Builder,OciMetricsRx>
Fluent API builder for
OciMetricsRx.-
Method Summary
Modifier and TypeMethodDescriptionapiVersion(String apiVersion) Configure API version to use.build()Build the instance from this builder.Update from configuration.Replace endpoint to be invoked when contacting OCI.hostPrefix(String prefix) Replace host prefix.restApi(OciRestApi restApi) Configure REST API to use.updateRestApi(Consumer<OciRestApi.Builder> builderConsumer) Update the rest API builder to modify defaults.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<OciMetricsRx.Builder,OciMetricsRx> - Returns:
- instance of the built type
-
config
Update from configuration. The configuration must be located on theOCIroot configuration node.- Parameters:
config- configuration- Returns:
- updated metrics builder
-
hostPrefix
Replace host prefix. Changing host prefix may be a breaking change. This API is designed to work withOciMetricsRx.API_HOST_PREFIX.- Parameters:
prefix- prefix to use- Returns:
- updated builder
-
endpoint
Replace endpoint to be invoked when contacting OCI.- Parameters:
endpoint- endpoint to use- Returns:
- updated builder
-
apiVersion
Configure API version to use. API version is part of the request URI. Changing API version is potentially breaking, as this API is designed to work with a specific version (seeOciMetricsRx.API_VERSION).- Parameters:
apiVersion- version of the API to use- Returns:
- updated builder
-
updateRestApi
Update the rest API builder to modify defaults.- Parameters:
builderConsumer- consumer of the builder- Returns:
- updated metrics builder
-
restApi
Configure REST API to use.- Parameters:
restApi- OCI rest API- Returns:
- updated builder
-