# 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 .user_open_app_feed_card_updater import UserOpenAppFeedCardUpdater


class UpdateAppFeedCardBatchRequestBody(object):
    _types = {
        "feed_cards": List[UserOpenAppFeedCardUpdater],
    }

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

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


class UpdateAppFeedCardBatchRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._update_app_feed_card_batch_request_body = UpdateAppFeedCardBatchRequestBody()

    def feed_cards(self, feed_cards: List[UserOpenAppFeedCardUpdater]) -> "UpdateAppFeedCardBatchRequestBodyBuilder":
        self._update_app_feed_card_batch_request_body.feed_cards = feed_cards
        return self

    def build(self) -> "UpdateAppFeedCardBatchRequestBody":
        return self._update_app_feed_card_batch_request_body
