# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class GetExportResponseBody(object):
    _types = {
        "status": int,
        "url": str,
        "file_token": str,
        "fail_msg": str,
    }

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

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


class GetExportResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_export_response_body = GetExportResponseBody()

    def status(self, status: int) -> "GetExportResponseBodyBuilder":
        self._get_export_response_body.status = status
        return self

    def url(self, url: str) -> "GetExportResponseBodyBuilder":
        self._get_export_response_body.url = url
        return self

    def file_token(self, file_token: str) -> "GetExportResponseBodyBuilder":
        self._get_export_response_body.file_token = file_token
        return self

    def fail_msg(self, fail_msg: str) -> "GetExportResponseBodyBuilder":
        self._get_export_response_body.fail_msg = fail_msg
        return self

    def build(self) -> "GetExportResponseBody":
        return self._get_export_response_body
