# 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 GenerateCaldavConfSettingResponseBody(object):
    _types = {
        "password": str,
        "user_name": str,
        "server_address": str,
        "device_name": str,
    }

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

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


class GenerateCaldavConfSettingResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._generate_caldav_conf_setting_response_body = GenerateCaldavConfSettingResponseBody()

    def password(self, password: str) -> "GenerateCaldavConfSettingResponseBodyBuilder":
        self._generate_caldav_conf_setting_response_body.password = password
        return self

    def user_name(self, user_name: str) -> "GenerateCaldavConfSettingResponseBodyBuilder":
        self._generate_caldav_conf_setting_response_body.user_name = user_name
        return self

    def server_address(self, server_address: str) -> "GenerateCaldavConfSettingResponseBodyBuilder":
        self._generate_caldav_conf_setting_response_body.server_address = server_address
        return self

    def device_name(self, device_name: str) -> "GenerateCaldavConfSettingResponseBodyBuilder":
        self._generate_caldav_conf_setting_response_body.device_name = device_name
        return self

    def build(self) -> "GenerateCaldavConfSettingResponseBody":
        return self._generate_caldav_conf_setting_response_body
