# 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 .schema_tag_options import SchemaTagOptions
from .schema_user_ids_option import SchemaUserIdsOption


class SchemaTypeDefinitions(object):
    _types = {
        "tag": List[SchemaTagOptions],
        "user_ids": SchemaUserIdsOption,
    }

    def __init__(self, d=None):
        self.tag: Optional[List[SchemaTagOptions]] = None
        self.user_ids: Optional[SchemaUserIdsOption] = None
        init(self, d, self._types)

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


class SchemaTypeDefinitionsBuilder(object):
    def __init__(self) -> None:
        self._schema_type_definitions = SchemaTypeDefinitions()

    def tag(self, tag: List[SchemaTagOptions]) -> "SchemaTypeDefinitionsBuilder":
        self._schema_type_definitions.tag = tag
        return self

    def user_ids(self, user_ids: SchemaUserIdsOption) -> "SchemaTypeDefinitionsBuilder":
        self._schema_type_definitions.user_ids = user_ids
        return self

    def build(self) -> "SchemaTypeDefinitions":
        return self._schema_type_definitions
