Class ServiceConfig.B2

java.lang.Object
org.apache.opendal.ServiceConfig.B2
All Implemented Interfaces:
ServiceConfig
Enclosing interface:
ServiceConfig

public static class ServiceConfig.B2 extends Object implements ServiceConfig
Configuration for service b2.
  • Field Details

    • applicationKey

      public final String applicationKey

      applicationKey of this backend.

      • If application_key is set, we will take user's input first.
      • If not, we will try to load it from environment.
    • applicationKeyId

      public final String applicationKeyId

      keyID of this backend.

      • If application_key_id is set, we will take user's input first.
      • If not, we will try to load it from environment.
    • bucket

      @NonNull public final @NonNull String bucket

      bucket of this backend.

      required.

    • bucketId

      @NonNull public final @NonNull String bucketId

      bucket id of this backend.

      required.

    • root

      public final String root

      root of this backend.

      All operations will happen under this root.

  • Constructor Details

    • B2

      public B2()
  • Method Details

    • scheme

      public String scheme()
      Description copied from interface: ServiceConfig
      The scheme of the service.
      Specified by:
      scheme in interface ServiceConfig
      Returns:
      the scheme
    • configMap

      public Map<String,String> configMap()
      Description copied from interface: ServiceConfig
      Convert the structured config to a type erased config map.

      A map-valued field becomes one entry, under the field's option name, whose value is a JSON object string, such as assume_role_session_tags = {"Team":"data"}. The map's entries are not flattened into top-level entries. Its keys are sorted, an empty map becomes {}, and an unset field has no entry.

      Specified by:
      configMap in interface ServiceConfig
      Returns:
      the config map