                     (add-rejected-metrics rejected-metrics)
                     (add-bp back-pressure))]
     {:name name
-     :result-key->enum result-key->enum
+     :result-key->enum (enums/enum-class-to-keyword->enum result-class)
      :result-metrics (or result-metrics [])
      :result-latency (or result-latency [])
-     :rejected-key->enum rejected-key->enum
+     :rejected-key->enum (enums/enum-class-to-keyword->enum rejected-class)
      :rejected-metrics (or rejected-metrics [])
      :back-pressure (or back-pressure [])
      :guard-rail (.build ^GuardRailBuilder builder)}))

                :else x))
        bindings))

(defmacro lett [bindings & body]
  (run-assertions bindings)
  (let [bindings (replace-bindings bindings)]
    `(let ~bindings
       ~@body)))

;; Explore

;{:name ""
; :result-key->enum {}
; :result-metrics []
