Class OciMetricsRx.Builder
- java.lang.Object
-
- io.helidon.integrations.oci.telemetry.OciMetricsRx.Builder
-
- All Implemented Interfaces:
Builder<OciMetricsRx>
,Supplier<OciMetricsRx>
- Enclosing interface:
- OciMetricsRx
public static class OciMetricsRx.Builder extends Object implements Builder<OciMetricsRx>
Fluent API builder forOciMetricsRx
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OciMetricsRx.Builder
apiVersion(String apiVersion)
OciMetricsRx
build()
Build the instance from this builder.OciMetricsRx.Builder
config(Config config)
Update from configuration.OciMetricsRx.Builder
endpoint(String endpoint)
OciMetricsRx.Builder
hostPrefix(String prefix)
OciMetricsRx.Builder
restApi(OciRestApi restApi)
OciMetricsRx.Builder
updateRestApi(Consumer<OciRestApi.Builder> builderConsumer)
Update the rest API builder to modify defaults.
-
-
-
Method Detail
-
build
public OciMetricsRx build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<OciMetricsRx>
- Returns:
- instance of the built type
-
config
public OciMetricsRx.Builder config(Config config)
Update from configuration. The configuration must be located on theOCI
root configuration node.- Parameters:
config
- configuration- Returns:
- updated metrics builder
-
hostPrefix
public OciMetricsRx.Builder hostPrefix(String prefix)
-
endpoint
public OciMetricsRx.Builder endpoint(String endpoint)
-
apiVersion
public OciMetricsRx.Builder apiVersion(String apiVersion)
-
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)
-
-