# 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 .refer_entity import ReferEntity


class CreateShortcutFileRequestBody(object):
    _types = {
        "parent_token": str,
        "refer_entity": ReferEntity,
    }

    def __init__(self, d=None):
        self.parent_token: Optional[str] = None
        self.refer_entity: Optional[ReferEntity] = None
        init(self, d, self._types)

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


class CreateShortcutFileRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._create_shortcut_file_request_body = CreateShortcutFileRequestBody()

    def parent_token(self, parent_token: str) -> "CreateShortcutFileRequestBodyBuilder":
        self._create_shortcut_file_request_body.parent_token = parent_token
        return self

    def refer_entity(self, refer_entity: ReferEntity) -> "CreateShortcutFileRequestBodyBuilder":
        self._create_shortcut_file_request_body.refer_entity = refer_entity
        return self

    def build(self) -> "CreateShortcutFileRequestBody":
        return self._create_shortcut_file_request_body
