# 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


class GetOfferApplicationFormRequest(BaseRequest):
    def __init__(self) -> None:
        super().__init__()
        self.offer_application_form_id: Optional[str] = None

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


class GetOfferApplicationFormRequestBuilder(object):

    def __init__(self) -> None:
        get_offer_application_form_request = GetOfferApplicationFormRequest()
        get_offer_application_form_request.http_method = HttpMethod.GET
        get_offer_application_form_request.uri = "/open-apis/hire/v1/offer_application_forms/:offer_application_form_id"
        get_offer_application_form_request.token_types = {AccessTokenType.TENANT}
        self._get_offer_application_form_request: GetOfferApplicationFormRequest = get_offer_application_form_request

    def offer_application_form_id(self, offer_application_form_id: str) -> "GetOfferApplicationFormRequestBuilder":
        self._get_offer_application_form_request.offer_application_form_id = offer_application_form_id
        self._get_offer_application_form_request.paths["offer_application_form_id"] = str(offer_application_form_id)
        return self

    def build(self) -> GetOfferApplicationFormRequest:
        return self._get_offer_application_form_request
