# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .folder import Folder


class CreateUserMailboxFolderResponseBody(object):
    _types = {
        "folder": Folder,
    }

    def __init__(self, d=None):
        self.folder: Optional[Folder] = None
        init(self, d, self._types)

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


class CreateUserMailboxFolderResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_user_mailbox_folder_response_body = CreateUserMailboxFolderResponseBody()

    def folder(self, folder: Folder) -> "CreateUserMailboxFolderResponseBodyBuilder":
        self._create_user_mailbox_folder_response_body.folder = folder
        return self

    def build(self) -> "CreateUserMailboxFolderResponseBody":
        return self._create_user_mailbox_folder_response_body
