# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class ExternalBackgroundCheckAttachment(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() -> "ExternalBackgroundCheckAttachmentBuilder":
        return ExternalBackgroundCheckAttachmentBuilder()


class ExternalBackgroundCheckAttachmentBuilder(object):
    def __init__(self) -> None:
        self._external_background_check_attachment = ExternalBackgroundCheckAttachment()

    def id(self, id: str) -> "ExternalBackgroundCheckAttachmentBuilder":
        self._external_background_check_attachment.id = id
        return self

    def name(self, name: str) -> "ExternalBackgroundCheckAttachmentBuilder":
        self._external_background_check_attachment.name = name
        return self

    def size(self, size: int) -> "ExternalBackgroundCheckAttachmentBuilder":
        self._external_background_check_attachment.size = size
        return self

    def build(self) -> "ExternalBackgroundCheckAttachment":
        return self._external_background_check_attachment
