# 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 .run import Run


class CreateAilySessionRunResponseBody(object):
    _types = {
        "run": Run,
    }

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

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


class CreateAilySessionRunResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_aily_session_run_response_body = CreateAilySessionRunResponseBody()

    def run(self, run: Run) -> "CreateAilySessionRunResponseBodyBuilder":
        self._create_aily_session_run_response_body.run = run
        return self

    def build(self) -> "CreateAilySessionRunResponseBody":
        return self._create_aily_session_run_response_body
