# 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 ProcessApprovalInfoRequestBody(object):
    _types = {
        "approval_id": str,
        "approval_type": str,
        "status": int,
    }

    def __init__(self, d=None):
        self.approval_id: Optional[str] = None
        self.approval_type: Optional[str] = None
        self.status: Optional[int] = None
        init(self, d, self._types)

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


class ProcessApprovalInfoRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._process_approval_info_request_body = ProcessApprovalInfoRequestBody()

    def approval_id(self, approval_id: str) -> "ProcessApprovalInfoRequestBodyBuilder":
        self._process_approval_info_request_body.approval_id = approval_id
        return self

    def approval_type(self, approval_type: str) -> "ProcessApprovalInfoRequestBodyBuilder":
        self._process_approval_info_request_body.approval_type = approval_type
        return self

    def status(self, status: int) -> "ProcessApprovalInfoRequestBodyBuilder":
        self._process_approval_info_request_body.status = status
        return self

    def build(self) -> "ProcessApprovalInfoRequestBody":
        return self._process_approval_info_request_body
