# 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 RestoreFlowInstancePreHireRequestBody(object):
    _types = {
        "pre_hire_id": str,
        "confirm_workforce": bool,
    }

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

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


class RestoreFlowInstancePreHireRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._restore_flow_instance_pre_hire_request_body = RestoreFlowInstancePreHireRequestBody()

    def pre_hire_id(self, pre_hire_id: str) -> "RestoreFlowInstancePreHireRequestBodyBuilder":
        self._restore_flow_instance_pre_hire_request_body.pre_hire_id = pre_hire_id
        return self

    def confirm_workforce(self, confirm_workforce: bool) -> "RestoreFlowInstancePreHireRequestBodyBuilder":
        self._restore_flow_instance_pre_hire_request_body.confirm_workforce = confirm_workforce
        return self

    def build(self) -> "RestoreFlowInstancePreHireRequestBody":
        return self._restore_flow_instance_pre_hire_request_body
