# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class CancelEcoBackgroundCheckRequestBody(object):
    _types = {
        "background_check_id": str,
    }

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

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


class CancelEcoBackgroundCheckRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._cancel_eco_background_check_request_body = CancelEcoBackgroundCheckRequestBody()

    def background_check_id(self, background_check_id: str) -> "CancelEcoBackgroundCheckRequestBodyBuilder":
        self._cancel_eco_background_check_request_body.background_check_id = background_check_id
        return self

    def build(self) -> "CancelEcoBackgroundCheckRequestBody":
        return self._cancel_eco_background_check_request_body
