# 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 .job_family_version_data import JobFamilyVersionData


class JobFamilyTimeline(object):
    _types = {
        "job_family_version_data": List[JobFamilyVersionData],
    }

    def __init__(self, d=None):
        self.job_family_version_data: Optional[List[JobFamilyVersionData]] = None
        init(self, d, self._types)

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


class JobFamilyTimelineBuilder(object):
    def __init__(self) -> None:
        self._job_family_timeline = JobFamilyTimeline()

    def job_family_version_data(self,
                                job_family_version_data: List[JobFamilyVersionData]) -> "JobFamilyTimelineBuilder":
        self._job_family_timeline.job_family_version_data = job_family_version_data
        return self

    def build(self) -> "JobFamilyTimeline":
        return self._job_family_timeline
