# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class GenerateCaldavConfSettingRequestBody(object):
    _types = {
        "device_name": str,
    }

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

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


class GenerateCaldavConfSettingRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._generate_caldav_conf_setting_request_body = GenerateCaldavConfSettingRequestBody()

    def device_name(self, device_name: str) -> "GenerateCaldavConfSettingRequestBodyBuilder":
        self._generate_caldav_conf_setting_request_body.device_name = device_name
        return self

    def build(self) -> "GenerateCaldavConfSettingRequestBody":
        return self._generate_caldav_conf_setting_request_body
