# 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 .open_failed_user_app_feed_card_item import OpenFailedUserAppFeedCardItem


class UpdateAppFeedCardBatchResponseBody(object):
    _types = {
        "failed_cards": List[OpenFailedUserAppFeedCardItem],
    }

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

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


class UpdateAppFeedCardBatchResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._update_app_feed_card_batch_response_body = UpdateAppFeedCardBatchResponseBody()

    def failed_cards(self,
                     failed_cards: List[OpenFailedUserAppFeedCardItem]) -> "UpdateAppFeedCardBatchResponseBodyBuilder":
        self._update_app_feed_card_batch_response_body.failed_cards = failed_cards
        return self

    def build(self) -> "UpdateAppFeedCardBatchResponseBody":
        return self._update_app_feed_card_batch_response_body
