# 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 MessagePin(object):
    _types = {
        "message_id": str,
    }

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

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


class MessagePinBuilder(object):
    def __init__(self) -> None:
        self._message_pin = MessagePin()

    def message_id(self, message_id: str) -> "MessagePinBuilder":
        self._message_pin.message_id = message_id
        return self

    def build(self) -> "MessagePin":
        return self._message_pin
