# 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 .parse_resume_request_body import ParseResumeRequestBody


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

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


class ParseResumeRequestBuilder(object):

    def __init__(self) -> None:
        parse_resume_request = ParseResumeRequest()
        parse_resume_request.http_method = HttpMethod.POST
        parse_resume_request.uri = "/open-apis/document_ai/v1/resume/parse"
        parse_resume_request.token_types = {AccessTokenType.TENANT}
        self._parse_resume_request: ParseResumeRequest = parse_resume_request

    def request_body(self, request_body: ParseResumeRequestBody) -> "ParseResumeRequestBuilder":
        self._parse_resume_request.request_body = request_body
        self._parse_resume_request.body = request_body
        return self

    def build(self) -> ParseResumeRequest:
        return self._parse_resume_request
