# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .external_background_check import ExternalBackgroundCheck


class CreateExternalBackgroundCheckResponseBody(object):
    _types = {
        "external_background_check": ExternalBackgroundCheck,
    }

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

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


class CreateExternalBackgroundCheckResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_external_background_check_response_body = CreateExternalBackgroundCheckResponseBody()

    def external_background_check(self,
                                  external_background_check: ExternalBackgroundCheck) -> "CreateExternalBackgroundCheckResponseBodyBuilder":
        self._create_external_background_check_response_body.external_background_check = external_background_check
        return self

    def build(self) -> "CreateExternalBackgroundCheckResponseBody":
        return self._create_external_background_check_response_body
