# 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_change import JobChange


class OpenQueryJobChangeListByIdsApprovalGroupsResponseBody(object):
    _types = {
        "job_changes": List[JobChange],
    }

    def __init__(self, d=None):
        self.job_changes: Optional[List[JobChange]] = None
        init(self, d, self._types)

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


class OpenQueryJobChangeListByIdsApprovalGroupsResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._open_query_job_change_list_by_ids_approval_groups_response_body = OpenQueryJobChangeListByIdsApprovalGroupsResponseBody()

    def job_changes(self,
                    job_changes: List[JobChange]) -> "OpenQueryJobChangeListByIdsApprovalGroupsResponseBodyBuilder":
        self._open_query_job_change_list_by_ids_approval_groups_response_body.job_changes = job_changes
        return self

    def build(self) -> "OpenQueryJobChangeListByIdsApprovalGroupsResponseBody":
        return self._open_query_job_change_list_by_ids_approval_groups_response_body
