Class OciConfigInstancePrincipal.Builder
- java.lang.Object
-
- io.helidon.integrations.oci.connect.OciConfigInstancePrincipal.Builder
-
- All Implemented Interfaces:
Builder<OciConfigInstancePrincipal>
,Supplier<OciConfigInstancePrincipal>
- Enclosing class:
- OciConfigInstancePrincipal
public static class OciConfigInstancePrincipal.Builder extends Object implements Builder<OciConfigInstancePrincipal>
Fluent API builder forOciConfigInstancePrincipal
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OciConfigInstancePrincipal
build()
Build the instance from this builder.OciConfigInstancePrincipal.Builder
federationEndpoint(String federationEndpoint)
Configure an explicit federation endpoint.OciConfigInstancePrincipal.Builder
metadataServiceUrl(String metadataServiceUrl)
Configure custom metadata service URL.OciConfigInstancePrincipal.Builder
region(String region)
Configure region to use.OciConfigInstancePrincipal.Builder
webClientBuilder(Consumer<WebClient.Builder> updater)
Update web client builder.
-
-
-
Method Detail
-
build
public OciConfigInstancePrincipal build()
Description copied from interface:Builder
Build the instance from this builder.- Specified by:
build
in interfaceBuilder<OciConfigInstancePrincipal>
- Returns:
- instance of the built type
-
webClientBuilder
public OciConfigInstancePrincipal.Builder webClientBuilder(Consumer<WebClient.Builder> updater)
Update web client builder. This can be used to configureWebClient.Builder.connectTimeout(long, java.util.concurrent.TimeUnit)
,WebClient.Builder.readTimeout(long, java.util.concurrent.TimeUnit)
and other options.- Parameters:
updater
- consumer that updates the web client builder- Returns:
- updated builder instance
-
metadataServiceUrl
public OciConfigInstancePrincipal.Builder metadataServiceUrl(String metadataServiceUrl)
Configure custom metadata service URL.- Parameters:
metadataServiceUrl
- URL of the service, if not defined, uses "http://169.254.169.254/opc/v2/"- Returns:
- updated builder
-
region
public OciConfigInstancePrincipal.Builder region(String region)
Configure region to use.- Parameters:
region
- region identifier- Returns:
- updated builder
-
federationEndpoint
public OciConfigInstancePrincipal.Builder federationEndpoint(String federationEndpoint)
Configure an explicit federation endpoint. If not defined, it is constructed with region.- Parameters:
federationEndpoint
- federation endpoint- Returns:
- updated builder
-
-