# 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 .moto import Moto


class CreateMotoResponseBody(object):
    _types = {
        "moto": Moto,
    }

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

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


class CreateMotoResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_moto_response_body = CreateMotoResponseBody()

    def moto(self, moto: Moto) -> "CreateMotoResponseBodyBuilder":
        self._create_moto_response_body.moto = moto
        return self

    def build(self) -> "CreateMotoResponseBody":
        return self._create_moto_response_body
