# 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 QueryOptions(object):
    _types = {
        "ignore_status": bool,
        "auth_extra": Dict[str, str],
    }

    def __init__(self, d=None):
        self.ignore_status: Optional[bool] = None
        self.auth_extra: Optional[Dict[str, str]] = None
        init(self, d, self._types)

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


class QueryOptionsBuilder(object):
    def __init__(self) -> None:
        self._query_options = QueryOptions()

    def ignore_status(self, ignore_status: bool) -> "QueryOptionsBuilder":
        self._query_options.ignore_status = ignore_status
        return self

    def auth_extra(self, auth_extra: Dict[str, str]) -> "QueryOptionsBuilder":
        self._query_options.auth_extra = auth_extra
        return self

    def build(self) -> "QueryOptions":
        return self._query_options
