# 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 .tasklist_activity_subscription import TasklistActivitySubscription


class ListTasklistActivitySubscriptionResponseBody(object):
    _types = {
        "items": List[TasklistActivitySubscription],
    }

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

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


class ListTasklistActivitySubscriptionResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._list_tasklist_activity_subscription_response_body = ListTasklistActivitySubscriptionResponseBody()

    def items(self, items: List[TasklistActivitySubscription]) -> "ListTasklistActivitySubscriptionResponseBodyBuilder":
        self._list_tasklist_activity_subscription_response_body.items = items
        return self

    def build(self) -> "ListTasklistActivitySubscriptionResponseBody":
        return self._list_tasklist_activity_subscription_response_body
