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

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

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


class PreviewAttachmentResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._preview_attachment_response_body = PreviewAttachmentResponseBody()

    def url(self, url: str) -> "PreviewAttachmentResponseBodyBuilder":
        self._preview_attachment_response_body.url = url
        return self

    def build(self) -> "PreviewAttachmentResponseBody":
        return self._preview_attachment_response_body
