# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class CreateFolderFileResponseBody(object):
    _types = {
        "token": str,
        "url": str,
    }

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

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


class CreateFolderFileResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_folder_file_response_body = CreateFolderFileResponseBody()

    def token(self, token: str) -> "CreateFolderFileResponseBodyBuilder":
        self._create_folder_file_response_body.token = token
        return self

    def url(self, url: str) -> "CreateFolderFileResponseBodyBuilder":
        self._create_folder_file_response_body.url = url
        return self

    def build(self) -> "CreateFolderFileResponseBody":
        return self._create_folder_file_response_body
