# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .room_config import RoomConfig


class SetRoomConfigRequestBody(object):
    _types = {
        "scope": int,
        "country_id": str,
        "district_id": str,
        "building_id": str,
        "floor_name": str,
        "room_id": str,
        "room_config": RoomConfig,
    }

    def __init__(self, d=None):
        self.scope: Optional[int] = None
        self.country_id: Optional[str] = None
        self.district_id: Optional[str] = None
        self.building_id: Optional[str] = None
        self.floor_name: Optional[str] = None
        self.room_id: Optional[str] = None
        self.room_config: Optional[RoomConfig] = None
        init(self, d, self._types)

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


class SetRoomConfigRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._set_room_config_request_body = SetRoomConfigRequestBody()

    def scope(self, scope: int) -> "SetRoomConfigRequestBodyBuilder":
        self._set_room_config_request_body.scope = scope
        return self

    def country_id(self, country_id: str) -> "SetRoomConfigRequestBodyBuilder":
        self._set_room_config_request_body.country_id = country_id
        return self

    def district_id(self, district_id: str) -> "SetRoomConfigRequestBodyBuilder":
        self._set_room_config_request_body.district_id = district_id
        return self

    def building_id(self, building_id: str) -> "SetRoomConfigRequestBodyBuilder":
        self._set_room_config_request_body.building_id = building_id
        return self

    def floor_name(self, floor_name: str) -> "SetRoomConfigRequestBodyBuilder":
        self._set_room_config_request_body.floor_name = floor_name
        return self

    def room_id(self, room_id: str) -> "SetRoomConfigRequestBodyBuilder":
        self._set_room_config_request_body.room_id = room_id
        return self

    def room_config(self, room_config: RoomConfig) -> "SetRoomConfigRequestBodyBuilder":
        self._set_room_config_request_body.room_config = room_config
        return self

    def build(self) -> "SetRoomConfigRequestBody":
        return self._set_room_config_request_body
