# 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 SubscribeAuditLogFile(object):
    _types = {
        "file_id": str,
        "file_url": str,
        "file_url_expire_time": int,
        "file_size": int,
        "start_time": int,
        "end_time": int,
    }

    def __init__(self, d=None):
        self.file_id: Optional[str] = None
        self.file_url: Optional[str] = None
        self.file_url_expire_time: Optional[int] = None
        self.file_size: Optional[int] = None
        self.start_time: Optional[int] = None
        self.end_time: Optional[int] = None
        init(self, d, self._types)

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


class SubscribeAuditLogFileBuilder(object):
    def __init__(self) -> None:
        self._subscribe_audit_log_file = SubscribeAuditLogFile()

    def file_id(self, file_id: str) -> "SubscribeAuditLogFileBuilder":
        self._subscribe_audit_log_file.file_id = file_id
        return self

    def file_url(self, file_url: str) -> "SubscribeAuditLogFileBuilder":
        self._subscribe_audit_log_file.file_url = file_url
        return self

    def file_url_expire_time(self, file_url_expire_time: int) -> "SubscribeAuditLogFileBuilder":
        self._subscribe_audit_log_file.file_url_expire_time = file_url_expire_time
        return self

    def file_size(self, file_size: int) -> "SubscribeAuditLogFileBuilder":
        self._subscribe_audit_log_file.file_size = file_size
        return self

    def start_time(self, start_time: int) -> "SubscribeAuditLogFileBuilder":
        self._subscribe_audit_log_file.start_time = start_time
        return self

    def end_time(self, end_time: int) -> "SubscribeAuditLogFileBuilder":
        self._subscribe_audit_log_file.end_time = end_time
        return self

    def build(self) -> "SubscribeAuditLogFile":
        return self._subscribe_audit_log_file
