# 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 ApplicationTalentCareerInfo(object):
    _types = {
        "id": str,
        "company": str,
        "title": str,
        "desc": str,
        "start_time": str,
        "end_time": str,
        "tag_list": List[int],
    }

    def __init__(self, d=None):
        self.id: Optional[str] = None
        self.company: Optional[str] = None
        self.title: Optional[str] = None
        self.desc: Optional[str] = None
        self.start_time: Optional[str] = None
        self.end_time: Optional[str] = None
        self.tag_list: Optional[List[int]] = None
        init(self, d, self._types)

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


class ApplicationTalentCareerInfoBuilder(object):
    def __init__(self) -> None:
        self._application_talent_career_info = ApplicationTalentCareerInfo()

    def id(self, id: str) -> "ApplicationTalentCareerInfoBuilder":
        self._application_talent_career_info.id = id
        return self

    def company(self, company: str) -> "ApplicationTalentCareerInfoBuilder":
        self._application_talent_career_info.company = company
        return self

    def title(self, title: str) -> "ApplicationTalentCareerInfoBuilder":
        self._application_talent_career_info.title = title
        return self

    def desc(self, desc: str) -> "ApplicationTalentCareerInfoBuilder":
        self._application_talent_career_info.desc = desc
        return self

    def start_time(self, start_time: str) -> "ApplicationTalentCareerInfoBuilder":
        self._application_talent_career_info.start_time = start_time
        return self

    def end_time(self, end_time: str) -> "ApplicationTalentCareerInfoBuilder":
        self._application_talent_career_info.end_time = end_time
        return self

    def tag_list(self, tag_list: List[int]) -> "ApplicationTalentCareerInfoBuilder":
        self._application_talent_career_info.tag_list = tag_list
        return self

    def build(self) -> "ApplicationTalentCareerInfo":
        return self._application_talent_career_info
