Class SecretBundleNodeConfigSource.Builder
java.lang.Object
io.helidon.config.AbstractSourceBuilder<B,U>
io.helidon.config.AbstractConfigSourceBuilder<B,Void>
io.helidon.integrations.oci.secrets.configsource.AbstractSecretBundleConfigSource.Builder<SecretBundleNodeConfigSource.Builder>
io.helidon.integrations.oci.secrets.configsource.SecretBundleNodeConfigSource.Builder
- All Implemented Interfaces:
Source.Builder<SecretBundleNodeConfigSource.Builder>
- Enclosing class:
- SecretBundleNodeConfigSource
public static final class SecretBundleNodeConfigSource.Builder
extends AbstractSecretBundleConfigSource.Builder<SecretBundleNodeConfigSource.Builder>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates and returns a newSecretBundleNodeConfigSource
instance initialized from the state of thisSecretBundleNodeConfigSource.Builder
.compartmentOcid
(String compartmentOcid) Sets the (required) OCID of the OCI compartment housing the vault from which aSecretBundleNodeConfigSource
will retrieve values.Configures thisSecretBundleNodeConfigSource.Builder
from the supplied meta-configuration.pollingStrategy
(PollingStrategy pollingStrategy) Sets thePollingStrategy
for use by thisSecretBundleNodeConfigSource.Builder
.vaultsSupplier
(Supplier<? extends com.oracle.bmc.vault.Vaults> vaultsSupplier) Uses the suppliedSupplier
ofVaults
instances, instead of the default one, for communicating with the OCI Vaults API.Methods inherited from class io.helidon.integrations.oci.secrets.configsource.AbstractSecretBundleConfigSource.Builder
secretsSupplier, vaultOcid
Methods inherited from class io.helidon.config.AbstractConfigSourceBuilder
mediaType, mediaTypeMapping, parser, parserMapping
Methods inherited from class io.helidon.config.AbstractSourceBuilder
changeWatcher, optional, retryPolicy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.helidon.config.spi.Source.Builder
optional, optional, retryPolicy
-
Method Details
-
build
Creates and returns a newSecretBundleNodeConfigSource
instance initialized from the state of thisSecretBundleNodeConfigSource.Builder
.- Returns:
- a new
SecretBundleNodeConfigSource
-
compartmentOcid
Sets the (required) OCID of the OCI compartment housing the vault from which aSecretBundleNodeConfigSource
will retrieve values.- Parameters:
compartmentOcid
- a valid OCID identifying an OCI compartment; must not benull
- Returns:
- this
SecretBundleNodeConfigSource.Builder
- Throws:
NullPointerException
- ifcompartmentId
isnull
-
config
Configures thisSecretBundleNodeConfigSource.Builder
from the supplied meta-configuration.- Overrides:
config
in classAbstractSecretBundleConfigSource.Builder<SecretBundleNodeConfigSource.Builder>
- Parameters:
metaConfig
- the meta-configuration; must not benull
- Returns:
- this
SecretBundleNodeConfigSource.Builder
- Throws:
NullPointerException
- ifmetaConfig
isnull
-
pollingStrategy
Sets thePollingStrategy
for use by thisSecretBundleNodeConfigSource.Builder
.If this method is never called, no
PollingStrategy
will be used by thisSecretBundleNodeConfigSource.Builder
.The implementation of this method calls
super.pollingStrategy(pollingStrategy)
and returns the result.- Overrides:
pollingStrategy
in classAbstractSourceBuilder<SecretBundleNodeConfigSource.Builder,
Void> - Parameters:
pollingStrategy
- aPollingStrategy
; must not benull
- Returns:
- this
SecretBundleNodeConfigSource.Builder
- Throws:
NullPointerException
- ifpollingStrategy
isnull
- See Also:
-
vaultsSupplier
public SecretBundleNodeConfigSource.Builder vaultsSupplier(Supplier<? extends com.oracle.bmc.vault.Vaults> vaultsSupplier) Uses the suppliedSupplier
ofVaults
instances, instead of the default one, for communicating with the OCI Vaults API.- Parameters:
vaultsSupplier
- the non-defaultSupplier
to use; must not benull
- Returns:
- this
SecretBundleNodeConfigSource.Builder
- Throws:
NullPointerException
- ifvaultsSupplier
isnull
-