public Map configMap()

in bindings/java/src/main/java/org/apache/opendal/ServiceConfig.java [3504:3525]


        public Map<String, String> configMap() {
            final HashMap<String, String> map = new HashMap<>();
            if (endpoint != null) {
                map.put("endpoint", endpoint);
            }
            if (username != null) {
                map.put("username", username);
            }
            if (password != null) {
                map.put("password", password);
            }
            if (token != null) {
                map.put("token", token);
            }
            if (root != null) {
                map.put("root", root);
            }
            if (disableCopy != null) {
                map.put("disable_copy", String.valueOf(disableCopy));
            }
            return map;
        }