# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class PrehireDefaultCostCenterUpdate(object):
    _types = {
        "cost_center_id": str,
        "is_herit": bool,
    }

    def __init__(self, d=None):
        self.cost_center_id: Optional[str] = None
        self.is_herit: Optional[bool] = None
        init(self, d, self._types)

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


class PrehireDefaultCostCenterUpdateBuilder(object):
    def __init__(self) -> None:
        self._prehire_default_cost_center_update = PrehireDefaultCostCenterUpdate()

    def cost_center_id(self, cost_center_id: str) -> "PrehireDefaultCostCenterUpdateBuilder":
        self._prehire_default_cost_center_update.cost_center_id = cost_center_id
        return self

    def is_herit(self, is_herit: bool) -> "PrehireDefaultCostCenterUpdateBuilder":
        self._prehire_default_cost_center_update.is_herit = is_herit
        return self

    def build(self) -> "PrehireDefaultCostCenterUpdate":
        return self._prehire_default_cost_center_update
