# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class SiteResumeCertificate(object):
    _types = {
        "name": str,
        "description": str,
    }

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

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


class SiteResumeCertificateBuilder(object):
    def __init__(self) -> None:
        self._site_resume_certificate = SiteResumeCertificate()

    def name(self, name: str) -> "SiteResumeCertificateBuilder":
        self._site_resume_certificate.name = name
        return self

    def description(self, description: str) -> "SiteResumeCertificateBuilder":
        self._site_resume_certificate.description = description
        return self

    def build(self) -> "SiteResumeCertificate":
        return self._site_resume_certificate
