# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class PatchChatAnnouncementRequestBody(object):
    _types = {
        "revision": str,
        "requests": List[str],
    }

    def __init__(self, d=None):
        self.revision: Optional[str] = None
        self.requests: Optional[List[str]] = None
        init(self, d, self._types)

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


class PatchChatAnnouncementRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._patch_chat_announcement_request_body = PatchChatAnnouncementRequestBody()

    def revision(self, revision: str) -> "PatchChatAnnouncementRequestBodyBuilder":
        self._patch_chat_announcement_request_body.revision = revision
        return self

    def requests(self, requests: List[str]) -> "PatchChatAnnouncementRequestBodyBuilder":
        self._patch_chat_announcement_request_body.requests = requests
        return self

    def build(self) -> "PatchChatAnnouncementRequestBody":
        return self._patch_chat_announcement_request_body
