# 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 NlsModelConfig(object):
    _types = {
        "model_name": str,
    }

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

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


class NlsModelConfigBuilder(object):
    def __init__(self) -> None:
        self._nls_model_config = NlsModelConfig()

    def model_name(self, model_name: str) -> "NlsModelConfigBuilder":
        self._nls_model_config.model_name = model_name
        return self

    def build(self) -> "NlsModelConfig":
        return self._nls_model_config
