# 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 ApplicationTalentWorksInfo(object):
    _types = {
        "id": str,
        "link": str,
        "desc": str,
        "name": str,
    }

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

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


class ApplicationTalentWorksInfoBuilder(object):
    def __init__(self) -> None:
        self._application_talent_works_info = ApplicationTalentWorksInfo()

    def id(self, id: str) -> "ApplicationTalentWorksInfoBuilder":
        self._application_talent_works_info.id = id
        return self

    def link(self, link: str) -> "ApplicationTalentWorksInfoBuilder":
        self._application_talent_works_info.link = link
        return self

    def desc(self, desc: str) -> "ApplicationTalentWorksInfoBuilder":
        self._application_talent_works_info.desc = desc
        return self

    def name(self, name: str) -> "ApplicationTalentWorksInfoBuilder":
        self._application_talent_works_info.name = name
        return self

    def build(self) -> "ApplicationTalentWorksInfo":
        return self._application_talent_works_info
