# 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 .aily_session import AilySession


class CreateAilySessionResponseBody(object):
    _types = {
        "session": AilySession,
    }

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

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


class CreateAilySessionResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_aily_session_response_body = CreateAilySessionResponseBody()

    def session(self, session: AilySession) -> "CreateAilySessionResponseBodyBuilder":
        self._create_aily_session_response_body.session = session
        return self

    def build(self) -> "CreateAilySessionResponseBody":
        return self._create_aily_session_response_body
