# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class DeleteAppTableRecordResponseBody(object):
    _types = {
        "deleted": bool,
        "record_id": str,
    }

    def __init__(self, d=None):
        self.deleted: Optional[bool] = None
        self.record_id: Optional[str] = None
        init(self, d, self._types)

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


class DeleteAppTableRecordResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._delete_app_table_record_response_body = DeleteAppTableRecordResponseBody()

    def deleted(self, deleted: bool) -> "DeleteAppTableRecordResponseBodyBuilder":
        self._delete_app_table_record_response_body.deleted = deleted
        return self

    def record_id(self, record_id: str) -> "DeleteAppTableRecordResponseBodyBuilder":
        self._delete_app_table_record_response_body.record_id = record_id
        return self

    def build(self) -> "DeleteAppTableRecordResponseBody":
        return self._delete_app_table_record_response_body
