# Code generated by Lark OpenAPI.

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


class GetReserveConfigAdminResponseBody(object):
    _types = {
        "reserve_admin_config": ReserveAdminConfig,
    }

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

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


class GetReserveConfigAdminResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_reserve_config_admin_response_body = GetReserveConfigAdminResponseBody()

    def reserve_admin_config(self,
                             reserve_admin_config: ReserveAdminConfig) -> "GetReserveConfigAdminResponseBodyBuilder":
        self._get_reserve_config_admin_response_body.reserve_admin_config = reserve_admin_config
        return self

    def build(self) -> "GetReserveConfigAdminResponseBody":
        return self._get_reserve_config_admin_response_body
