# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class WebsiteDeliveryWorksAttachment(object):
    _types = {
        "file_id": str,
    }

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

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


class WebsiteDeliveryWorksAttachmentBuilder(object):
    def __init__(self) -> None:
        self._website_delivery_works_attachment = WebsiteDeliveryWorksAttachment()

    def file_id(self, file_id: str) -> "WebsiteDeliveryWorksAttachmentBuilder":
        self._website_delivery_works_attachment.file_id = file_id
        return self

    def build(self) -> "WebsiteDeliveryWorksAttachment":
        return self._website_delivery_works_attachment
