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

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

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


class TransitTaskPreHireResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._transit_task_pre_hire_response_body = TransitTaskPreHireResponseBody()

    def success(self, success: bool) -> "TransitTaskPreHireResponseBodyBuilder":
        self._transit_task_pre_hire_response_body.success = success
        return self

    def build(self) -> "TransitTaskPreHireResponseBody":
        return self._transit_task_pre_hire_response_body
