# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class CreatePlaceOptions(object):
    _types = {
        "data_source": int,
    }

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

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


class CreatePlaceOptionsBuilder(object):
    def __init__(self) -> None:
        self._create_place_options = CreatePlaceOptions()

    def data_source(self, data_source: int) -> "CreatePlaceOptionsBuilder":
        self._create_place_options.data_source = data_source
        return self

    def build(self) -> "CreatePlaceOptions":
        return self._create_place_options
