# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .attachment import Attachment


class UploadAttachmentResponseBody(object):
    _types = {
        "items": List[Attachment],
    }

    def __init__(self, d=None):
        self.items: Optional[List[Attachment]] = None
        init(self, d, self._types)

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


class UploadAttachmentResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._upload_attachment_response_body = UploadAttachmentResponseBody()

    def items(self, items: List[Attachment]) -> "UploadAttachmentResponseBodyBuilder":
        self._upload_attachment_response_body.items = items
        return self

    def build(self) -> "UploadAttachmentResponseBody":
        return self._upload_attachment_response_body
