# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class AppTableViewPropertyHierarchyConfig(object):
    _types = {
        "field_id": str,
    }

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

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


class AppTableViewPropertyHierarchyConfigBuilder(object):
    def __init__(self) -> None:
        self._app_table_view_property_hierarchy_config = AppTableViewPropertyHierarchyConfig()

    def field_id(self, field_id: str) -> "AppTableViewPropertyHierarchyConfigBuilder":
        self._app_table_view_property_hierarchy_config.field_id = field_id
        return self

    def build(self) -> "AppTableViewPropertyHierarchyConfig":
        return self._app_table_view_property_hierarchy_config
