# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .job_data import JobData


class PatchJobDataResponseBody(object):
    _types = {
        "job_data": JobData,
    }

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

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


class PatchJobDataResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._patch_job_data_response_body = PatchJobDataResponseBody()

    def job_data(self, job_data: JobData) -> "PatchJobDataResponseBodyBuilder":
        self._patch_job_data_response_body.job_data = job_data
        return self

    def build(self) -> "PatchJobDataResponseBody":
        return self._patch_job_data_response_body
