# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class CreateDocumentRequestBody(object):
    _types = {
        "folder_token": str,
        "title": str,
    }

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

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


class CreateDocumentRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._create_document_request_body = CreateDocumentRequestBody()

    def folder_token(self, folder_token: str) -> "CreateDocumentRequestBodyBuilder":
        self._create_document_request_body.folder_token = folder_token
        return self

    def title(self, title: str) -> "CreateDocumentRequestBodyBuilder":
        self._create_document_request_body.title = title
        return self

    def build(self) -> "CreateDocumentRequestBody":
        return self._create_document_request_body
