# 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 .attachment_download_url_item import AttachmentDownloadUrlItem


class DownloadUrlUserMailboxMessageAttachmentResponseBody(object):
    _types = {
        "download_urls": List[AttachmentDownloadUrlItem],
        "failed_ids": List[str],
    }

    def __init__(self, d=None):
        self.download_urls: Optional[List[AttachmentDownloadUrlItem]] = None
        self.failed_ids: Optional[List[str]] = None
        init(self, d, self._types)

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


class DownloadUrlUserMailboxMessageAttachmentResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._download_url_user_mailbox_message_attachment_response_body = DownloadUrlUserMailboxMessageAttachmentResponseBody()

    def download_urls(self, download_urls: List[
        AttachmentDownloadUrlItem]) -> "DownloadUrlUserMailboxMessageAttachmentResponseBodyBuilder":
        self._download_url_user_mailbox_message_attachment_response_body.download_urls = download_urls
        return self

    def failed_ids(self, failed_ids: List[str]) -> "DownloadUrlUserMailboxMessageAttachmentResponseBodyBuilder":
        self._download_url_user_mailbox_message_attachment_response_body.failed_ids = failed_ids
        return self

    def build(self) -> "DownloadUrlUserMailboxMessageAttachmentResponseBody":
        return self._download_url_user_mailbox_message_attachment_response_body
