# 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 SearchCalendarRequestBody(object):
    _types = {
        "query": str,
    }

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

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


class SearchCalendarRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._search_calendar_request_body = SearchCalendarRequestBody()

    def query(self, query: str) -> "SearchCalendarRequestBodyBuilder":
        self._search_calendar_request_body.query = query
        return self

    def build(self) -> "SearchCalendarRequestBody":
        return self._search_calendar_request_body
