# 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 Classification(object):
    _types = {
        "id": str,
        "name": str,
        "father_id": str,
    }

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

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


class ClassificationBuilder(object):
    def __init__(self) -> None:
        self._classification = Classification()

    def id(self, id: str) -> "ClassificationBuilder":
        self._classification.id = id
        return self

    def name(self, name: str) -> "ClassificationBuilder":
        self._classification.name = name
        return self

    def father_id(self, father_id: str) -> "ClassificationBuilder":
        self._classification.father_id = father_id
        return self

    def build(self) -> "Classification":
        return self._classification
