# 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 AilyMessageFileFilter(object):
    _types = {
        "with_preview_url": bool,
    }

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

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


class AilyMessageFileFilterBuilder(object):
    def __init__(self) -> None:
        self._aily_message_file_filter = AilyMessageFileFilter()

    def with_preview_url(self, with_preview_url: bool) -> "AilyMessageFileFilterBuilder":
        self._aily_message_file_filter.with_preview_url = with_preview_url
        return self

    def build(self) -> "AilyMessageFileFilter":
        return self._aily_message_file_filter
