# 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 ExportArchiveUserRecordReq(object):
    _types = {
        "start_date": str,
        "end_date": str,
        "user_ids": List[str],
    }

    def __init__(self, d=None):
        self.start_date: Optional[str] = None
        self.end_date: Optional[str] = None
        self.user_ids: Optional[List[str]] = None
        init(self, d, self._types)

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


class ExportArchiveUserRecordReqBuilder(object):
    def __init__(self) -> None:
        self._export_archive_user_record_req = ExportArchiveUserRecordReq()

    def start_date(self, start_date: str) -> "ExportArchiveUserRecordReqBuilder":
        self._export_archive_user_record_req.start_date = start_date
        return self

    def end_date(self, end_date: str) -> "ExportArchiveUserRecordReqBuilder":
        self._export_archive_user_record_req.end_date = end_date
        return self

    def user_ids(self, user_ids: List[str]) -> "ExportArchiveUserRecordReqBuilder":
        self._export_archive_user_record_req.user_ids = user_ids
        return self

    def build(self) -> "ExportArchiveUserRecordReq":
        return self._export_archive_user_record_req
