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

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

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


class CaptionBuilder(object):
    def __init__(self) -> None:
        self._caption = Caption()

    def content(self, content: str) -> "CaptionBuilder":
        self._caption.content = content
        return self

    def build(self) -> "Caption":
        return self._caption
