# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class CreateFolderFileRequestBody(object):
    _types = {
        "name": str,
        "folder_token": str,
    }

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

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


class CreateFolderFileRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._create_folder_file_request_body = CreateFolderFileRequestBody()

    def name(self, name: str) -> "CreateFolderFileRequestBodyBuilder":
        self._create_folder_file_request_body.name = name
        return self

    def folder_token(self, folder_token: str) -> "CreateFolderFileRequestBodyBuilder":
        self._create_folder_file_request_body.folder_token = folder_token
        return self

    def build(self) -> "CreateFolderFileRequestBody":
        return self._create_folder_file_request_body
