# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class DelRoomLevelRequestBody(object):
    _types = {
        "room_level_id": str,
        "delete_child": bool,
    }

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

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


class DelRoomLevelRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._del_room_level_request_body = DelRoomLevelRequestBody()

    def room_level_id(self, room_level_id: str) -> "DelRoomLevelRequestBodyBuilder":
        self._del_room_level_request_body.room_level_id = room_level_id
        return self

    def delete_child(self, delete_child: bool) -> "DelRoomLevelRequestBodyBuilder":
        self._del_room_level_request_body.delete_child = delete_child
        return self

    def build(self) -> "DelRoomLevelRequestBody":
        return self._del_room_level_request_body
