# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .tasklist_activity_subscription import TasklistActivitySubscription


class PatchTasklistActivitySubscriptionResponseBody(object):
    _types = {
        "activity_subscription": TasklistActivitySubscription,
    }

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

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


class PatchTasklistActivitySubscriptionResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._patch_tasklist_activity_subscription_response_body = PatchTasklistActivitySubscriptionResponseBody()

    def activity_subscription(self,
                              activity_subscription: TasklistActivitySubscription) -> "PatchTasklistActivitySubscriptionResponseBodyBuilder":
        self._patch_tasklist_activity_subscription_response_body.activity_subscription = activity_subscription
        return self

    def build(self) -> "PatchTasklistActivitySubscriptionResponseBody":
        return self._patch_tasklist_activity_subscription_response_body
