# 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 LeaveExtendItem(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() -> "LeaveExtendItemBuilder":
        return LeaveExtendItemBuilder()


class LeaveExtendItemBuilder(object):
    def __init__(self) -> None:
        self._leave_extend_item = LeaveExtendItem()

    def key(self, key: str) -> "LeaveExtendItemBuilder":
        self._leave_extend_item.key = key
        return self

    def value(self, value: str) -> "LeaveExtendItemBuilder":
        self._leave_extend_item.value = value
        return self

    def build(self) -> "LeaveExtendItem":
        return self._leave_extend_item
