# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .user_setting import UserSetting


class ModifyUserSettingRequestBody(object):
    _types = {
        "user_setting": UserSetting,
    }

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

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


class ModifyUserSettingRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._modify_user_setting_request_body = ModifyUserSettingRequestBody()

    def user_setting(self, user_setting: UserSetting) -> "ModifyUserSettingRequestBodyBuilder":
        self._modify_user_setting_request_body.user_setting = user_setting
        return self

    def build(self) -> "ModifyUserSettingRequestBody":
        return self._modify_user_setting_request_body
