# 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_version_data import JobVersionData


class JobTimeline(object):
    _types = {
        "job_version_data": List[JobVersionData],
    }

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

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


class JobTimelineBuilder(object):
    def __init__(self) -> None:
        self._job_timeline = JobTimeline()

    def job_version_data(self, job_version_data: List[JobVersionData]) -> "JobTimelineBuilder":
        self._job_timeline.job_version_data = job_version_data
        return self

    def build(self) -> "JobTimeline":
        return self._job_timeline
