# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .import_task import ImportTask


class GetImportTaskResponseBody(object):
    _types = {
        "result": ImportTask,
    }

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

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


class GetImportTaskResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_import_task_response_body = GetImportTaskResponseBody()

    def result(self, result: ImportTask) -> "GetImportTaskResponseBodyBuilder":
        self._get_import_task_response_body.result = result
        return self

    def build(self) -> "GetImportTaskResponseBody":
        return self._get_import_task_response_body
