@Override
    public void getConfig(DocumentdbInfoConfig.Builder builder) {
        for (DocumentDatabase db : documentDbs.values()) {
            var docDb = new DocumentdbInfoConfig.Documentdb.Builder().name(db.getName());
            switch (db.getDerivedConfiguration().getIndexMode()) {
                case INDEX -> docDb.mode(DocumentdbInfoConfig.Documentdb.Mode.Enum.INDEX);
                case STREAMING -> docDb.mode(DocumentdbInfoConfig.Documentdb.Mode.Enum.STREAMING);
                case STORE_ONLY -> docDb.mode(DocumentdbInfoConfig.Documentdb.Mode.Enum.STORE_ONLY);
            }
            builder.documentdb(docDb);
        }
    }
Returns the document databases contained in this cluster
config-model/src/main/java/com/yahoo/vespa/model/search/SearchCluster.java