# 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 AilyKnowledgeHelpdesk(object):
    _types = {
        "helpdesk_id": str,
        "title": str,
    }

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

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


class AilyKnowledgeHelpdeskBuilder(object):
    def __init__(self) -> None:
        self._aily_knowledge_helpdesk = AilyKnowledgeHelpdesk()

    def helpdesk_id(self, helpdesk_id: str) -> "AilyKnowledgeHelpdeskBuilder":
        self._aily_knowledge_helpdesk.helpdesk_id = helpdesk_id
        return self

    def title(self, title: str) -> "AilyKnowledgeHelpdeskBuilder":
        self._aily_knowledge_helpdesk.title = title
        return self

    def build(self) -> "AilyKnowledgeHelpdesk":
        return self._aily_knowledge_helpdesk
