# 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 SetCheckboardAccessCodeRoomConfigRequestBody(object):
    _types = {
        "scope": int,
        "country_id": str,
        "district_id": str,
        "building_id": str,
        "floor_name": str,
        "room_id": str,
        "valid_day": int,
    }

    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.valid_day: Optional[int] = None
        init(self, d, self._types)

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


class SetCheckboardAccessCodeRoomConfigRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._set_checkboard_access_code_room_config_request_body = SetCheckboardAccessCodeRoomConfigRequestBody()

    def scope(self, scope: int) -> "SetCheckboardAccessCodeRoomConfigRequestBodyBuilder":
        self._set_checkboard_access_code_room_config_request_body.scope = scope
        return self

    def country_id(self, country_id: str) -> "SetCheckboardAccessCodeRoomConfigRequestBodyBuilder":
        self._set_checkboard_access_code_room_config_request_body.country_id = country_id
        return self

    def district_id(self, district_id: str) -> "SetCheckboardAccessCodeRoomConfigRequestBodyBuilder":
        self._set_checkboard_access_code_room_config_request_body.district_id = district_id
        return self

    def building_id(self, building_id: str) -> "SetCheckboardAccessCodeRoomConfigRequestBodyBuilder":
        self._set_checkboard_access_code_room_config_request_body.building_id = building_id
        return self

    def floor_name(self, floor_name: str) -> "SetCheckboardAccessCodeRoomConfigRequestBodyBuilder":
        self._set_checkboard_access_code_room_config_request_body.floor_name = floor_name
        return self

    def room_id(self, room_id: str) -> "SetCheckboardAccessCodeRoomConfigRequestBodyBuilder":
        self._set_checkboard_access_code_room_config_request_body.room_id = room_id
        return self

    def valid_day(self, valid_day: int) -> "SetCheckboardAccessCodeRoomConfigRequestBodyBuilder":
        self._set_checkboard_access_code_room_config_request_body.valid_day = valid_day
        return self

    def build(self) -> "SetCheckboardAccessCodeRoomConfigRequestBody":
        return self._set_checkboard_access_code_room_config_request_body
