# 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_message import AilyMessage


class GetAilySessionAilyMessageResponseBody(object):
    _types = {
        "message": AilyMessage,
    }

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

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


class GetAilySessionAilyMessageResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_aily_session_aily_message_response_body = GetAilySessionAilyMessageResponseBody()

    def message(self, message: AilyMessage) -> "GetAilySessionAilyMessageResponseBodyBuilder":
        self._get_aily_session_aily_message_response_body.message = message
        return self

    def build(self) -> "GetAilySessionAilyMessageResponseBody":
        return self._get_aily_session_aily_message_response_body
