   builder)
 
 (defn map->hive
-  [{:keys [result-key->enum
+  [{:keys [result-class
            result-metrics
            result-latency
            back-pressure
-           rejected-key->enum
+           rejected-class
            rejected-metrics]}]
   (let [builder (-> (GuardRailBuilder.)
                     (.name name)

                :else x))
        bindings))

(defmacro lett [bindings & body]
  (run-assertions bindings)
  (let [bindings (replace-bindings bindings)]
    `(let ~bindings
       ~@body)))
                    (add-rejected-metrics rejected-metrics)
                    (add-bp back-pressure))]
    {:name name
     :result-key->enum (enums/enum-class-to-keyword->enum result-class)
     :result-metrics (or result-metrics [])
     :result-latency (or result-latency [])
     :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)}))
