# 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 RecognizeFoodProduceLicenseRequestBody(object):
    _types = {
        "file": IO[Any],
    }

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

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


class RecognizeFoodProduceLicenseRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._recognize_food_produce_license_request_body = RecognizeFoodProduceLicenseRequestBody()

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

    def build(self) -> "RecognizeFoodProduceLicenseRequestBody":
        return self._recognize_food_produce_license_request_body
