# 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 CreateAppFeedCardResponseBody(object):
    _types = {
        "failed_cards": List[OpenFailedUserAppFeedCardItem],
        "biz_id": str,
    }

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

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


class CreateAppFeedCardResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_app_feed_card_response_body = CreateAppFeedCardResponseBody()

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

    def biz_id(self, biz_id: str) -> "CreateAppFeedCardResponseBodyBuilder":
        self._create_app_feed_card_response_body.biz_id = biz_id
        return self

    def build(self) -> "CreateAppFeedCardResponseBody":
        return self._create_app_feed_card_response_body
