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

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

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


class ObjectIdNameBuilder(object):
    def __init__(self) -> None:
        self._object_id_name = ObjectIdName()

    def id(self, id: str) -> "ObjectIdNameBuilder":
        self._object_id_name.id = id
        return self

    def name(self, name: str) -> "ObjectIdNameBuilder":
        self._object_id_name.name = name
        return self

    def build(self) -> "ObjectIdName":
        return self._object_id_name
