public synchronized void setAllConfigAttributes(Map<String, Map<String, Map<String, String>>> types) {
    configTypes = new HashMap<>();
    for (Map.Entry<String, Map<String, Map<String, String>>> entry : types.entrySet()) {
      setTypeAttributes(entry.getKey(), entry.getValue());
    }
  }
Set all types and associated attributes.  Any previously existing types and
attributes are removed prior to setting the new values.

@param types map of type attributes
ambari-server/src/main/java/org/apache/ambari/server/state/ServiceInfo.java