class ExporterConfig {

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();

        if (querySyncConfiguration != null)
            sb.append(querySyncConfiguration);
        if (metricsNameSnakeCase) sb.append("metricsNameSnakeCase: true\n");
        if (useDomainQualifier) sb.append(DOMAIN_QUALIFIER + ": true\n");
        if (restPort != null) sb.append(REST_PORT + ": ").append(restPort).append("\n");
        sb.append("queries:\n");

        for (MBeanSelector query : getQueries())
            sb.append(formatQuery(query));

        return sb.toString();
    }

    private  ExporterConfig(Map<String, Object> yaml);

}