Class OciConfigProfile.Builder
java.lang.Object
io.helidon.integrations.oci.connect.OciConfigProfile.Builder
- All Implemented Interfaces:
Builder<OciConfigProfile.Builder,,OciConfigProfile> Supplier<OciConfigProfile>
- Enclosing class:
- OciConfigProfile
public static class OciConfigProfile.Builder
extends Object
implements Builder<OciConfigProfile.Builder,OciConfigProfile>
Fluent API builder for
OciConfigProfile.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build the instance from this builder.Update this builder from configuration.booleanWhether this builder has the required configuration.Update this builder from OCI configuration on default path with default profile.fromOciConfig(String profile) Update this builder from OCI configuration on default path with custom profile.fromOciConfig(Path path) Update this builder from OCI configuration on custom path with default profile.fromOciConfig(Path path, String profile) Attempts to read the profile from the OCI config file.keyFingerprint(String keyFingerprint) Key fingerprint.privateKey(String privateKey) PEM encoded private key.privateKey(RSAPrivateKey privateKey) Configure an explicit RSA private key.voidAdd property as defined in OCI config file.OCI region.tenancyOcid(String tenancyOcid) Tenancy OCID.User OCID.
-
Method Details
-
build
Description copied from interface:BuilderBuild the instance from this builder.- Specified by:
buildin interfaceBuilder<OciConfigProfile.Builder,OciConfigProfile> - Returns:
- instance of the built type
-
config
Update this builder from configuration.- Parameters:
config- config located on the node of OCI configuration- Returns:
- updated builder
-
userOcid
User OCID.- Parameters:
userOcid- OCID of the user- Returns:
- updated builder
-
tenancyOcid
Tenancy OCID.- Parameters:
tenancyOcid- OCID of the tenancy- Returns:
- updated builder
-
keyFingerprint
Key fingerprint.- Parameters:
keyFingerprint- key fingerprint- Returns:
- updated builder
-
region
OCI region.- Parameters:
region- region- Returns:
- updated builder
-
privateKey
PEM encoded private key.- Parameters:
privateKey- private key- Returns:
- updated builder
-
privateKey
Configure an explicit RSA private key.- Parameters:
privateKey- private key to use- Returns:
- updated builder
-
property
Add property as defined in OCI config file.- Parameters:
key- keyvalue- value
-
fromOciConfig
Update this builder from OCI configuration on default path with default profile.- Returns:
- updated builder
-
fromOciConfig
Update this builder from OCI configuration on default path with custom profile.- Parameters:
profile- name of the profile- Returns:
- updated builder
-
fromOciConfig
Update this builder from OCI configuration on custom path with default profile.- Parameters:
path- path to the profile- Returns:
- updated builder
-
fromOciConfig
Attempts to read the profile from the OCI config file. This method does not fail in case the path is invalid.- Parameters:
path- path of the OCI config (may not exist)profile- profile to read- Returns:
- updated builder instance
- Throws:
OciRestException- in case the file exists, but the profile name is not valid
-
configured
public boolean configured()Whether this builder has the required configuration.- Returns:
trueif this builder is valid
-