# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .req_table import ReqTable


class CreateAppTableRequestBody(object):
    _types = {
        "table": ReqTable,
    }

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

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


class CreateAppTableRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._create_app_table_request_body = CreateAppTableRequestBody()

    def table(self, table: ReqTable) -> "CreateAppTableRequestBodyBuilder":
        self._create_app_table_request_body.table = table
        return self

    def build(self) -> "CreateAppTableRequestBody":
        return self._create_app_table_request_body
