# 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 .manageable_instance_node import ManageableInstanceNode


class ManageableInstanceItem(object):
    _types = {
        "instance": ManageableInstanceNode,
    }

    def __init__(self, d=None):
        self.instance: Optional[ManageableInstanceNode] = None
        init(self, d, self._types)

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


class ManageableInstanceItemBuilder(object):
    def __init__(self) -> None:
        self._manageable_instance_item = ManageableInstanceItem()

    def instance(self, instance: ManageableInstanceNode) -> "ManageableInstanceItemBuilder":
        self._manageable_instance_item.instance = instance
        return self

    def build(self) -> "ManageableInstanceItem":
        return self._manageable_instance_item
