# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .pre_hire import PreHire


class GetPreHireResponseBody(object):
    _types = {
        "pre_hire": PreHire,
    }

    def __init__(self, d=None):
        self.pre_hire: Optional[PreHire] = None
        init(self, d, self._types)

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


class GetPreHireResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_pre_hire_response_body = GetPreHireResponseBody()

    def pre_hire(self, pre_hire: PreHire) -> "GetPreHireResponseBodyBuilder":
        self._get_pre_hire_response_body.pre_hire = pre_hire
        return self

    def build(self) -> "GetPreHireResponseBody":
        return self._get_pre_hire_response_body
