# 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 GetTasklistActivitySubscriptionResponseBody(object):
    _types = {
        "activity_subscription": TasklistActivitySubscription,
    }

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

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


class GetTasklistActivitySubscriptionResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_tasklist_activity_subscription_response_body = GetTasklistActivitySubscriptionResponseBody()

    def activity_subscription(self,
                              activity_subscription: TasklistActivitySubscription) -> "GetTasklistActivitySubscriptionResponseBodyBuilder":
        self._get_tasklist_activity_subscription_response_body.activity_subscription = activity_subscription
        return self

    def build(self) -> "GetTasklistActivitySubscriptionResponseBody":
        return self._get_tasklist_activity_subscription_response_body
