# 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 CompositeTalentProjectInfo(object):
    _types = {
        "project_name": str,
        "role": str,
        "link": str,
        "description": str,
        "start_time": str,
        "end_time": str,
        "customized_data_list": List[TalentCustomizedDataChild],
    }

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

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


class CompositeTalentProjectInfoBuilder(object):
    def __init__(self) -> None:
        self._composite_talent_project_info = CompositeTalentProjectInfo()

    def project_name(self, project_name: str) -> "CompositeTalentProjectInfoBuilder":
        self._composite_talent_project_info.project_name = project_name
        return self

    def role(self, role: str) -> "CompositeTalentProjectInfoBuilder":
        self._composite_talent_project_info.role = role
        return self

    def link(self, link: str) -> "CompositeTalentProjectInfoBuilder":
        self._composite_talent_project_info.link = link
        return self

    def description(self, description: str) -> "CompositeTalentProjectInfoBuilder":
        self._composite_talent_project_info.description = description
        return self

    def start_time(self, start_time: str) -> "CompositeTalentProjectInfoBuilder":
        self._composite_talent_project_info.start_time = start_time
        return self

    def end_time(self, end_time: str) -> "CompositeTalentProjectInfoBuilder":
        self._composite_talent_project_info.end_time = end_time
        return self

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

    def build(self) -> "CompositeTalentProjectInfo":
        return self._composite_talent_project_info
