# 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 .approver_info import ApproverInfo


class ListProcessApproverResponseBody(object):
    _types = {
        "page_token": str,
        "has_more": bool,
        "approvers": List[ApproverInfo],
    }

    def __init__(self, d=None):
        self.page_token: Optional[str] = None
        self.has_more: Optional[bool] = None
        self.approvers: Optional[List[ApproverInfo]] = None
        init(self, d, self._types)

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


class ListProcessApproverResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._list_process_approver_response_body = ListProcessApproverResponseBody()

    def page_token(self, page_token: str) -> "ListProcessApproverResponseBodyBuilder":
        self._list_process_approver_response_body.page_token = page_token
        return self

    def has_more(self, has_more: bool) -> "ListProcessApproverResponseBodyBuilder":
        self._list_process_approver_response_body.has_more = has_more
        return self

    def approvers(self, approvers: List[ApproverInfo]) -> "ListProcessApproverResponseBodyBuilder":
        self._list_process_approver_response_body.approvers = approvers
        return self

    def build(self) -> "ListProcessApproverResponseBody":
        return self._list_process_approver_response_body
