# Code generated by Lark OpenAPI.

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


class RevokeJobChangeResponseBody(object):
    _types = {
        "result": bool,
        "message": str,
    }

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

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


class RevokeJobChangeResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._revoke_job_change_response_body = RevokeJobChangeResponseBody()

    def result(self, result: bool) -> "RevokeJobChangeResponseBodyBuilder":
        self._revoke_job_change_response_body.result = result
        return self

    def message(self, message: str) -> "RevokeJobChangeResponseBodyBuilder":
        self._revoke_job_change_response_body.message = message
        return self

    def build(self) -> "RevokeJobChangeResponseBody":
        return self._revoke_job_change_response_body
