# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .freebusy import Freebusy


class ListFreebusyResponseBody(object):
    _types = {
        "freebusy_list": List[Freebusy],
    }

    def __init__(self, d=None):
        self.freebusy_list: Optional[List[Freebusy]] = None
        init(self, d, self._types)

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


class ListFreebusyResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._list_freebusy_response_body = ListFreebusyResponseBody()

    def freebusy_list(self, freebusy_list: List[Freebusy]) -> "ListFreebusyResponseBodyBuilder":
        self._list_freebusy_response_body.freebusy_list = freebusy_list
        return self

    def build(self) -> "ListFreebusyResponseBody":
        return self._list_freebusy_response_body
