# 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 .skill_global_variable import SkillGlobalVariable


class StartAppSkillRequestBody(object):
    _types = {
        "global_variable": SkillGlobalVariable,
        "input": str,
    }

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

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


class StartAppSkillRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._start_app_skill_request_body = StartAppSkillRequestBody()

    def global_variable(self, global_variable: SkillGlobalVariable) -> "StartAppSkillRequestBodyBuilder":
        self._start_app_skill_request_body.global_variable = global_variable
        return self

    def input(self, input: str) -> "StartAppSkillRequestBodyBuilder":
        self._start_app_skill_request_body.input = input
        return self

    def build(self) -> "StartAppSkillRequestBody":
        return self._start_app_skill_request_body
