# 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 SignatureTemplateAttachmentInfo(object):
    _types = {
        "id": str,
        "name": str,
        "size": int,
    }

    def __init__(self, d=None):
        self.id: Optional[str] = None
        self.name: Optional[str] = None
        self.size: Optional[int] = None
        init(self, d, self._types)

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


class SignatureTemplateAttachmentInfoBuilder(object):
    def __init__(self) -> None:
        self._signature_template_attachment_info = SignatureTemplateAttachmentInfo()

    def id(self, id: str) -> "SignatureTemplateAttachmentInfoBuilder":
        self._signature_template_attachment_info.id = id
        return self

    def name(self, name: str) -> "SignatureTemplateAttachmentInfoBuilder":
        self._signature_template_attachment_info.name = name
        return self

    def size(self, size: int) -> "SignatureTemplateAttachmentInfoBuilder":
        self._signature_template_attachment_info.size = size
        return self

    def build(self) -> "SignatureTemplateAttachmentInfo":
        return self._signature_template_attachment_info
