Class OciVaultRx.Builder

java.lang.Object
io.helidon.integrations.oci.vault.OciVaultRx.Builder
All Implemented Interfaces:
Builder<OciVaultRx.Builder,OciVaultRx>, Supplier<OciVaultRx>
Enclosing interface:
OciVaultRx

public static class OciVaultRx.Builder extends Object implements Builder<OciVaultRx.Builder,OciVaultRx>
Fluent API builder for OciVaultRx.
  • Method Details

    • build

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

      public OciVaultRx.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
    • vaultPrefix

      public OciVaultRx.Builder vaultPrefix(String vaultPrefix)
      Replace Vault host prefix. Changing host prefix may be a breaking change. This API is designed to work with OciVaultRx.VAULTS_HOST_PREFIX.
      Parameters:
      vaultPrefix - prefix to use
      Returns:
      updated builder
    • retrievalPrefix

      public OciVaultRx.Builder retrievalPrefix(String retrievalHostPrefix)
      Replace retrieval host prefix. Changing host prefix may be a breaking change. This API is designed to work with OciVaultRx.RETRIEVAL_HOST_PREFIX.
      Parameters:
      retrievalHostPrefix - prefix to use
      Returns:
      updated builder
    • vaultEndpoint

      public OciVaultRx.Builder vaultEndpoint(String vaultEndpoint)
      Vault endpoint.
      Parameters:
      vaultEndpoint - valut endpoint
      Returns:
      updated builder
    • retrievalEndpoint

      public OciVaultRx.Builder retrievalEndpoint(String retrievalEndpoint)
      Endpoint to retrieve secrets from.
      Parameters:
      retrievalEndpoint - endpoint
      Returns:
      updated builder
    • kmsPrefix

      public OciVaultRx.Builder kmsPrefix(String kmsPrefix)
      Replace KMS host prefix. Changing host prefix may be a breaking change. This API is designed to work with OciVaultRx.KMS_HOST_PREFIX.
      Parameters:
      kmsPrefix - prefix to use
      Returns:
      updated builder
    • kmsEndpoint

      public OciVaultRx.Builder kmsEndpoint(String kmsEndpoint)
      KMS endpoint.
      Parameters:
      kmsEndpoint - KMS endpoint
      Returns:
      updated builder
    • vaultEndpointFormat

      public OciVaultRx.Builder vaultEndpointFormat(String endpointFormat)
      Endpoint format to use. Default is OciVaultRx.OCI_ENDPOINT_FORMAT.
      Parameters:
      endpointFormat - endpoint format to use
      Returns:
      updated builder
    • secretApiVersion

      public OciVaultRx.Builder secretApiVersion(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 OciVaultRx.SECRET_API_VERSION).
      Parameters:
      apiVersion - version of the API to use
      Returns:
      updated builder
    • secretBundleApiVersion

      public OciVaultRx.Builder secretBundleApiVersion(String apiVersion)
      Configure bundle 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 OciVaultRx.SECRET_BUNDLE_API_VERSION).
      Parameters:
      apiVersion - version of the API to use
      Returns:
      updated builder
    • cryptographicEndpoint

      public OciVaultRx.Builder cryptographicEndpoint(String address)
      Configure the cryptographic endpoint.
      Parameters:
      address - endpoint for crypto operations
      Returns:
      updated builder
    • managementEndpoint

      public OciVaultRx.Builder managementEndpoint(String managementEndpoint)
      Configure the management endpoint.
      Parameters:
      managementEndpoint - management endpoint
      Returns:
      updated builder
    • restApi

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

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