# 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 .object_field_data import ObjectFieldData


class WorkExperienceForUpdate(object):
    _types = {
        "company_name": str,
        "start_time": str,
        "end_time": str,
        "job_title": str,
        "description": str,
        "department": str,
        "custom_fields": List[ObjectFieldData],
    }

    def __init__(self, d=None):
        self.company_name: Optional[str] = None
        self.start_time: Optional[str] = None
        self.end_time: Optional[str] = None
        self.job_title: Optional[str] = None
        self.description: Optional[str] = None
        self.department: Optional[str] = None
        self.custom_fields: Optional[List[ObjectFieldData]] = None
        init(self, d, self._types)

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


class WorkExperienceForUpdateBuilder(object):
    def __init__(self) -> None:
        self._work_experience_for_update = WorkExperienceForUpdate()

    def company_name(self, company_name: str) -> "WorkExperienceForUpdateBuilder":
        self._work_experience_for_update.company_name = company_name
        return self

    def start_time(self, start_time: str) -> "WorkExperienceForUpdateBuilder":
        self._work_experience_for_update.start_time = start_time
        return self

    def end_time(self, end_time: str) -> "WorkExperienceForUpdateBuilder":
        self._work_experience_for_update.end_time = end_time
        return self

    def job_title(self, job_title: str) -> "WorkExperienceForUpdateBuilder":
        self._work_experience_for_update.job_title = job_title
        return self

    def description(self, description: str) -> "WorkExperienceForUpdateBuilder":
        self._work_experience_for_update.description = description
        return self

    def department(self, department: str) -> "WorkExperienceForUpdateBuilder":
        self._work_experience_for_update.department = department
        return self

    def custom_fields(self, custom_fields: List[ObjectFieldData]) -> "WorkExperienceForUpdateBuilder":
        self._work_experience_for_update.custom_fields = custom_fields
        return self

    def build(self) -> "WorkExperienceForUpdate":
        return self._work_experience_for_update
