# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .job_config_result import JobConfigResult


class UpdateConfigJobResponseBody(object):
    _types = {
        "job_config": JobConfigResult,
    }

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

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


class UpdateConfigJobResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._update_config_job_response_body = UpdateConfigJobResponseBody()

    def job_config(self, job_config: JobConfigResult) -> "UpdateConfigJobResponseBodyBuilder":
        self._update_config_job_response_body.job_config = job_config
        return self

    def build(self) -> "UpdateConfigJobResponseBody":
        return self._update_config_job_response_body
