# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .talent_customized_data_child import TalentCustomizedDataChild


class CompositeTalentCareerInfo(object):
    _types = {
        "company_name": str,
        "description": str,
        "end_time": str,
        "start_time": str,
        "title": str,
        "customized_data_list": List[TalentCustomizedDataChild],
    }

    def __init__(self, d=None):
        self.company_name: Optional[str] = None
        self.description: Optional[str] = None
        self.end_time: Optional[str] = None
        self.start_time: Optional[str] = None
        self.title: Optional[str] = None
        self.customized_data_list: Optional[List[TalentCustomizedDataChild]] = None
        init(self, d, self._types)

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


class CompositeTalentCareerInfoBuilder(object):
    def __init__(self) -> None:
        self._composite_talent_career_info = CompositeTalentCareerInfo()

    def company_name(self, company_name: str) -> "CompositeTalentCareerInfoBuilder":
        self._composite_talent_career_info.company_name = company_name
        return self

    def description(self, description: str) -> "CompositeTalentCareerInfoBuilder":
        self._composite_talent_career_info.description = description
        return self

    def end_time(self, end_time: str) -> "CompositeTalentCareerInfoBuilder":
        self._composite_talent_career_info.end_time = end_time
        return self

    def start_time(self, start_time: str) -> "CompositeTalentCareerInfoBuilder":
        self._composite_talent_career_info.start_time = start_time
        return self

    def title(self, title: str) -> "CompositeTalentCareerInfoBuilder":
        self._composite_talent_career_info.title = title
        return self

    def customized_data_list(self, customized_data_list: List[
        TalentCustomizedDataChild]) -> "CompositeTalentCareerInfoBuilder":
        self._composite_talent_career_info.customized_data_list = customized_data_list
        return self

    def build(self) -> "CompositeTalentCareerInfo":
        return self._composite_talent_career_info
