# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.model import BaseRequest
from lark_oapi.core.enum import HttpMethod, AccessTokenType
from .batch_delete_eco_background_check_package_request_body import BatchDeleteEcoBackgroundCheckPackageRequestBody


class BatchDeleteEcoBackgroundCheckPackageRequest(BaseRequest):
    def __init__(self) -> None:
        super().__init__()
        self.request_body: Optional[BatchDeleteEcoBackgroundCheckPackageRequestBody] = None

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


class BatchDeleteEcoBackgroundCheckPackageRequestBuilder(object):

    def __init__(self) -> None:
        batch_delete_eco_background_check_package_request = BatchDeleteEcoBackgroundCheckPackageRequest()
        batch_delete_eco_background_check_package_request.http_method = HttpMethod.POST
        batch_delete_eco_background_check_package_request.uri = "/open-apis/hire/v1/eco_background_check_packages/batch_delete"
        batch_delete_eco_background_check_package_request.token_types = {AccessTokenType.TENANT}
        self._batch_delete_eco_background_check_package_request: BatchDeleteEcoBackgroundCheckPackageRequest = batch_delete_eco_background_check_package_request

    def request_body(self,
                     request_body: BatchDeleteEcoBackgroundCheckPackageRequestBody) -> "BatchDeleteEcoBackgroundCheckPackageRequestBuilder":
        self._batch_delete_eco_background_check_package_request.request_body = request_body
        self._batch_delete_eco_background_check_package_request.body = request_body
        return self

    def build(self) -> BatchDeleteEcoBackgroundCheckPackageRequest:
        return self._batch_delete_eco_background_check_package_request
