# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .reserve_form_config import ReserveFormConfig


class GetReserveConfigFormResponseBody(object):
    _types = {
        "reserve_form_config": ReserveFormConfig,
    }

    def __init__(self, d=None):
        self.reserve_form_config: Optional[ReserveFormConfig] = None
        init(self, d, self._types)

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


class GetReserveConfigFormResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_reserve_config_form_response_body = GetReserveConfigFormResponseBody()

    def reserve_form_config(self, reserve_form_config: ReserveFormConfig) -> "GetReserveConfigFormResponseBodyBuilder":
        self._get_reserve_config_form_response_body.reserve_form_config = reserve_form_config
        return self

    def build(self) -> "GetReserveConfigFormResponseBody":
        return self._get_reserve_config_form_response_body
