# 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 UploadImageResponseBody(object):
    _types = {
        "file_token": str,
        "url": str,
    }

    def __init__(self, d=None):
        self.file_token: Optional[str] = None
        self.url: Optional[str] = None
        init(self, d, self._types)

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


class UploadImageResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._upload_image_response_body = UploadImageResponseBody()

    def file_token(self, file_token: str) -> "UploadImageResponseBodyBuilder":
        self._upload_image_response_body.file_token = file_token
        return self

    def url(self, url: str) -> "UploadImageResponseBodyBuilder":
        self._upload_image_response_body.url = url
        return self

    def build(self) -> "UploadImageResponseBody":
        return self._upload_image_response_body
