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

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

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


class WithdrawOnboardingPreHireRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._withdraw_onboarding_pre_hire_request_body = WithdrawOnboardingPreHireRequestBody()

    def pre_hire_id(self, pre_hire_id: str) -> "WithdrawOnboardingPreHireRequestBodyBuilder":
        self._withdraw_onboarding_pre_hire_request_body.pre_hire_id = pre_hire_id
        return self

    def withdraw_reason(self, withdraw_reason: str) -> "WithdrawOnboardingPreHireRequestBodyBuilder":
        self._withdraw_onboarding_pre_hire_request_body.withdraw_reason = withdraw_reason
        return self

    def build(self) -> "WithdrawOnboardingPreHireRequestBody":
        return self._withdraw_onboarding_pre_hire_request_body
