# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class KieEntity(object):
    _types = {
        "key": str,
        "value": str,
    }

    def __init__(self, d=None):
        self.key: Optional[str] = None
        self.value: Optional[str] = None
        init(self, d, self._types)

    @staticmethod
    def builder() -> "KieEntityBuilder":
        return KieEntityBuilder()


class KieEntityBuilder(object):
    def __init__(self) -> None:
        self._kie_entity = KieEntity()

    def key(self, key: str) -> "KieEntityBuilder":
        self._kie_entity.key = key
        return self

    def value(self, value: str) -> "KieEntityBuilder":
        self._kie_entity.value = value
        return self

    def build(self) -> "KieEntity":
        return self._kie_entity
