# 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 import I18n
from .i18n import I18n


class DimensionAbility(object):
    _types = {
        "id": str,
        "name": I18n,
        "description": I18n,
    }

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

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


class DimensionAbilityBuilder(object):
    def __init__(self) -> None:
        self._dimension_ability = DimensionAbility()

    def id(self, id: str) -> "DimensionAbilityBuilder":
        self._dimension_ability.id = id
        return self

    def name(self, name: I18n) -> "DimensionAbilityBuilder":
        self._dimension_ability.name = name
        return self

    def description(self, description: I18n) -> "DimensionAbilityBuilder":
        self._dimension_ability.description = description
        return self

    def build(self) -> "DimensionAbility":
        return self._dimension_ability
