# 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 .dmp_timeline_field import DmpTimelineField


class DmpOriginalData(object):
    _types = {
        "employee_number": str,
        "time_periods": List[DmpTimelineField],
    }

    def __init__(self, d=None):
        self.employee_number: Optional[str] = None
        self.time_periods: Optional[List[DmpTimelineField]] = None
        init(self, d, self._types)

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


class DmpOriginalDataBuilder(object):
    def __init__(self) -> None:
        self._dmp_original_data = DmpOriginalData()

    def employee_number(self, employee_number: str) -> "DmpOriginalDataBuilder":
        self._dmp_original_data.employee_number = employee_number
        return self

    def time_periods(self, time_periods: List[DmpTimelineField]) -> "DmpOriginalDataBuilder":
        self._dmp_original_data.time_periods = time_periods
        return self

    def build(self) -> "DmpOriginalData":
        return self._dmp_original_data
