# 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 SiteResumeCompetition(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() -> "SiteResumeCompetitionBuilder":
        return SiteResumeCompetitionBuilder()


class SiteResumeCompetitionBuilder(object):
    def __init__(self) -> None:
        self._site_resume_competition = SiteResumeCompetition()

    def name(self, name: str) -> "SiteResumeCompetitionBuilder":
        self._site_resume_competition.name = name
        return self

    def description(self, description: str) -> "SiteResumeCompetitionBuilder":
        self._site_resume_competition.description = description
        return self

    def build(self) -> "SiteResumeCompetition":
        return self._site_resume_competition
