# 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 import Schema


class GetSchemaResponseBody(object):
    _types = {
        "schema": Schema,
    }

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

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


class GetSchemaResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_schema_response_body = GetSchemaResponseBody()

    def schema(self, schema: Schema) -> "GetSchemaResponseBodyBuilder":
        self._get_schema_response_body.schema = schema
        return self

    def build(self) -> "GetSchemaResponseBody":
        return self._get_schema_response_body
