# 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 UserStatsFieldsQueryArchiveRuleRequestBody(object):
    _types = {
        "locale": str,
        "month": str,
        "archive_rule_id": str,
        "operator_id": str,
    }

    def __init__(self, d=None):
        self.locale: Optional[str] = None
        self.month: Optional[str] = None
        self.archive_rule_id: Optional[str] = None
        self.operator_id: Optional[str] = None
        init(self, d, self._types)

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


class UserStatsFieldsQueryArchiveRuleRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._user_stats_fields_query_archive_rule_request_body = UserStatsFieldsQueryArchiveRuleRequestBody()

    def locale(self, locale: str) -> "UserStatsFieldsQueryArchiveRuleRequestBodyBuilder":
        self._user_stats_fields_query_archive_rule_request_body.locale = locale
        return self

    def month(self, month: str) -> "UserStatsFieldsQueryArchiveRuleRequestBodyBuilder":
        self._user_stats_fields_query_archive_rule_request_body.month = month
        return self

    def archive_rule_id(self, archive_rule_id: str) -> "UserStatsFieldsQueryArchiveRuleRequestBodyBuilder":
        self._user_stats_fields_query_archive_rule_request_body.archive_rule_id = archive_rule_id
        return self

    def operator_id(self, operator_id: str) -> "UserStatsFieldsQueryArchiveRuleRequestBodyBuilder":
        self._user_stats_fields_query_archive_rule_request_body.operator_id = operator_id
        return self

    def build(self) -> "UserStatsFieldsQueryArchiveRuleRequestBody":
        return self._user_stats_fields_query_archive_rule_request_body
