# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class MaterialDeleteResult(object):
    _types = {
        "file_token": str,
        "result": int,
    }

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

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


class MaterialDeleteResultBuilder(object):
    def __init__(self) -> None:
        self._material_delete_result = MaterialDeleteResult()

    def file_token(self, file_token: str) -> "MaterialDeleteResultBuilder":
        self._material_delete_result.file_token = file_token
        return self

    def result(self, result: int) -> "MaterialDeleteResultBuilder":
        self._material_delete_result.result = result
        return self

    def build(self) -> "MaterialDeleteResult":
        return self._material_delete_result
