# 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 .audit_log_es_field import AuditLogEsField


class AuditLogListApplicationAuditLogResponseBody(object):
    _types = {
        "items": List[AuditLogEsField],
        "total": str,
    }

    def __init__(self, d=None):
        self.items: Optional[List[AuditLogEsField]] = None
        self.total: Optional[str] = None
        init(self, d, self._types)

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


class AuditLogListApplicationAuditLogResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._audit_log_list_application_audit_log_response_body = AuditLogListApplicationAuditLogResponseBody()

    def items(self, items: List[AuditLogEsField]) -> "AuditLogListApplicationAuditLogResponseBodyBuilder":
        self._audit_log_list_application_audit_log_response_body.items = items
        return self

    def total(self, total: str) -> "AuditLogListApplicationAuditLogResponseBodyBuilder":
        self._audit_log_list_application_audit_log_response_body.total = total
        return self

    def build(self) -> "AuditLogListApplicationAuditLogResponseBody":
        return self._audit_log_list_application_audit_log_response_body
