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 Details

    • build

      public OciMetricsRx build()
      Description copied from interface: Builder
      Build the instance from this builder.
      Specified by:
      build in interface Builder<OciMetricsRx.Builder,OciMetricsRx>
      Returns:
      instance of the built type
    • config

      public OciMetricsRx.Builder config(Config config)
      Update from configuration. The configuration must be located on the OCI root configuration node.
      Parameters:
      config - configuration
      Returns:
      updated metrics builder
    • hostPrefix

      public OciMetricsRx.Builder hostPrefix(String prefix)
      Replace host prefix. Changing host prefix may be a breaking change. This API is designed to work with OciMetricsRx.API_HOST_PREFIX.
      Parameters:
      prefix - prefix to use
      Returns:
      updated builder
    • endpoint

      public OciMetricsRx.Builder endpoint(String endpoint)
      Replace endpoint to be invoked when contacting OCI.
      Parameters:
      endpoint - endpoint to use
      Returns:
      updated builder
    • apiVersion

      public OciMetricsRx.Builder apiVersion(String 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 (see OciMetricsRx.API_VERSION).
      Parameters:
      apiVersion - version of the API to use
      Returns:
      updated builder
    • updateRestApi

      public OciMetricsRx.Builder updateRestApi(Consumer<OciRestApi.Builder> builderConsumer)
      Update the rest API builder to modify defaults.
      Parameters:
      builderConsumer - consumer of the builder
      Returns:
      updated metrics builder
    • restApi

      public OciMetricsRx.Builder restApi(OciRestApi restApi)
      Configure REST API to use.
      Parameters:
      restApi - OCI rest API
      Returns:
      updated builder