# 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 .i18n import I18n
from .i18n import I18n
from .i18n import I18n


class JobVersionData(object):
    _types = {
        "job_id": str,
        "job_version_id": str,
        "job_names": List[I18n],
        "effective_date": str,
        "expiration_date": str,
        "active": bool,
        "descriptions": List[I18n],
        "code": str,
        "job_titles": List[I18n],
        "job_family_ids": List[str],
        "job_level_ids": List[str],
        "pathway_id": str,
        "working_hours_type_id": str,
    }

    def __init__(self, d=None):
        self.job_id: Optional[str] = None
        self.job_version_id: Optional[str] = None
        self.job_names: Optional[List[I18n]] = None
        self.effective_date: Optional[str] = None
        self.expiration_date: Optional[str] = None
        self.active: Optional[bool] = None
        self.descriptions: Optional[List[I18n]] = None
        self.code: Optional[str] = None
        self.job_titles: Optional[List[I18n]] = None
        self.job_family_ids: Optional[List[str]] = None
        self.job_level_ids: Optional[List[str]] = None
        self.pathway_id: Optional[str] = None
        self.working_hours_type_id: Optional[str] = None
        init(self, d, self._types)

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


class JobVersionDataBuilder(object):
    def __init__(self) -> None:
        self._job_version_data = JobVersionData()

    def job_id(self, job_id: str) -> "JobVersionDataBuilder":
        self._job_version_data.job_id = job_id
        return self

    def job_version_id(self, job_version_id: str) -> "JobVersionDataBuilder":
        self._job_version_data.job_version_id = job_version_id
        return self

    def job_names(self, job_names: List[I18n]) -> "JobVersionDataBuilder":
        self._job_version_data.job_names = job_names
        return self

    def effective_date(self, effective_date: str) -> "JobVersionDataBuilder":
        self._job_version_data.effective_date = effective_date
        return self

    def expiration_date(self, expiration_date: str) -> "JobVersionDataBuilder":
        self._job_version_data.expiration_date = expiration_date
        return self

    def active(self, active: bool) -> "JobVersionDataBuilder":
        self._job_version_data.active = active
        return self

    def descriptions(self, descriptions: List[I18n]) -> "JobVersionDataBuilder":
        self._job_version_data.descriptions = descriptions
        return self

    def code(self, code: str) -> "JobVersionDataBuilder":
        self._job_version_data.code = code
        return self

    def job_titles(self, job_titles: List[I18n]) -> "JobVersionDataBuilder":
        self._job_version_data.job_titles = job_titles
        return self

    def job_family_ids(self, job_family_ids: List[str]) -> "JobVersionDataBuilder":
        self._job_version_data.job_family_ids = job_family_ids
        return self

    def job_level_ids(self, job_level_ids: List[str]) -> "JobVersionDataBuilder":
        self._job_version_data.job_level_ids = job_level_ids
        return self

    def pathway_id(self, pathway_id: str) -> "JobVersionDataBuilder":
        self._job_version_data.pathway_id = pathway_id
        return self

    def working_hours_type_id(self, working_hours_type_id: str) -> "JobVersionDataBuilder":
        self._job_version_data.working_hours_type_id = working_hours_type_id
        return self

    def build(self) -> "JobVersionData":
        return self._job_version_data
