# 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 .archive_field import ArchiveField


class UserStatsFieldsQueryArchiveRuleResponseBody(object):
    _types = {
        "archive_report_fields": List[ArchiveField],
    }

    def __init__(self, d=None):
        self.archive_report_fields: Optional[List[ArchiveField]] = None
        init(self, d, self._types)

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


class UserStatsFieldsQueryArchiveRuleResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._user_stats_fields_query_archive_rule_response_body = UserStatsFieldsQueryArchiveRuleResponseBody()

    def archive_report_fields(self, archive_report_fields: List[
        ArchiveField]) -> "UserStatsFieldsQueryArchiveRuleResponseBodyBuilder":
        self._user_stats_fields_query_archive_rule_response_body.archive_report_fields = archive_report_fields
        return self

    def build(self) -> "UserStatsFieldsQueryArchiveRuleResponseBody":
        return self._user_stats_fields_query_archive_rule_response_body
