# 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 .i18n_v2 import I18nV2


class OnboardingFlow(object):
    _types = {
        "id": str,
        "name": I18nV2,
    }

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

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


class OnboardingFlowBuilder(object):
    def __init__(self) -> None:
        self._onboarding_flow = OnboardingFlow()

    def id(self, id: str) -> "OnboardingFlowBuilder":
        self._onboarding_flow.id = id
        return self

    def name(self, name: I18nV2) -> "OnboardingFlowBuilder":
        self._onboarding_flow.name = name
        return self

    def build(self) -> "OnboardingFlow":
        return self._onboarding_flow
