# Code generated by Lark OpenAPI.

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


class Function(object):
    _types = {
        "api_name": str,
    }

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

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


class FunctionBuilder(object):
    def __init__(self) -> None:
        self._function = Function()

    def api_name(self, api_name: str) -> "FunctionBuilder":
        self._function.api_name = api_name
        return self

    def build(self) -> "Function":
        return self._function
