# 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 .data_source import DataSource


class PatchDataSourceResponseBody(object):
    _types = {
        "data_source": DataSource,
    }

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

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


class PatchDataSourceResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._patch_data_source_response_body = PatchDataSourceResponseBody()

    def data_source(self, data_source: DataSource) -> "PatchDataSourceResponseBodyBuilder":
        self._patch_data_source_response_body.data_source = data_source
        return self

    def build(self) -> "PatchDataSourceResponseBody":
        return self._patch_data_source_response_body
