# 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 GetFileRequest(BaseRequest):
    def __init__(self) -> None:
        super().__init__()
        self.id: Optional[str] = None

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


class GetFileRequestBuilder(object):

    def __init__(self) -> None:
        get_file_request = GetFileRequest()
        get_file_request.http_method = HttpMethod.GET
        get_file_request.uri = "/open-apis/corehr/v1/files/:id"
        get_file_request.token_types = {AccessTokenType.TENANT}
        self._get_file_request: GetFileRequest = get_file_request

    def id(self, id: str) -> "GetFileRequestBuilder":
        self._get_file_request.id = id
        self._get_file_request.paths["id"] = str(id)
        return self

    def build(self) -> GetFileRequest:
        return self._get_file_request
