# 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 BatchUpdateUrlPreviewRequestBody(object):
    _types = {
        "preview_tokens": List[str],
        "open_ids": List[str],
    }

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

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


class BatchUpdateUrlPreviewRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._batch_update_url_preview_request_body = BatchUpdateUrlPreviewRequestBody()

    def preview_tokens(self, preview_tokens: List[str]) -> "BatchUpdateUrlPreviewRequestBodyBuilder":
        self._batch_update_url_preview_request_body.preview_tokens = preview_tokens
        return self

    def open_ids(self, open_ids: List[str]) -> "BatchUpdateUrlPreviewRequestBodyBuilder":
        self._batch_update_url_preview_request_body.open_ids = open_ids
        return self

    def build(self) -> "BatchUpdateUrlPreviewRequestBody":
        return self._batch_update_url_preview_request_body
