# 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_app_feed_card import OpenAppFeedCard


class CreateAppFeedCardRequestBody(object):
    _types = {
        "app_feed_card": OpenAppFeedCard,
        "user_ids": List[str],
    }

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

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


class CreateAppFeedCardRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._create_app_feed_card_request_body = CreateAppFeedCardRequestBody()

    def app_feed_card(self, app_feed_card: OpenAppFeedCard) -> "CreateAppFeedCardRequestBodyBuilder":
        self._create_app_feed_card_request_body.app_feed_card = app_feed_card
        return self

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

    def build(self) -> "CreateAppFeedCardRequestBody":
        return self._create_app_feed_card_request_body
