# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class UploadFileRequestBody(object):
    _types = {
        "file": IO[Any],
    }

    def __init__(self, d=None):
        self.file: Optional[IO[Any]] = None
        init(self, d, self._types)

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


class UploadFileRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._upload_file_request_body = UploadFileRequestBody()

    def file(self, file: IO[Any]) -> "UploadFileRequestBodyBuilder":
        self._upload_file_request_body.file = file
        return self

    def build(self) -> "UploadFileRequestBody":
        return self._upload_file_request_body
