# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .job import Job


class CreateJobResponseBody(object):
    _types = {
        "job": Job,
    }

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

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


class CreateJobResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_job_response_body = CreateJobResponseBody()

    def job(self, job: Job) -> "CreateJobResponseBodyBuilder":
        self._create_job_response_body.job = job
        return self

    def build(self) -> "CreateJobResponseBody":
        return self._create_job_response_body
