# 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 WithdrawOnboardingPreHireResponseBody(object):
    _types = {
        "success": bool,
    }

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

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


class WithdrawOnboardingPreHireResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._withdraw_onboarding_pre_hire_response_body = WithdrawOnboardingPreHireResponseBody()

    def success(self, success: bool) -> "WithdrawOnboardingPreHireResponseBodyBuilder":
        self._withdraw_onboarding_pre_hire_response_body.success = success
        return self

    def build(self) -> "WithdrawOnboardingPreHireResponseBody":
        return self._withdraw_onboarding_pre_hire_response_body
