# 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 ListApproverResponseBody(object):
    _types = {
        "page_token": str,
        "has_more": bool,
        "approver_list": List[ApproverInfo],
    }

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

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


class ListApproverResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._list_approver_response_body = ListApproverResponseBody()

    def page_token(self, page_token: str) -> "ListApproverResponseBodyBuilder":
        self._list_approver_response_body.page_token = page_token
        return self

    def has_more(self, has_more: bool) -> "ListApproverResponseBodyBuilder":
        self._list_approver_response_body.has_more = has_more
        return self

    def approver_list(self, approver_list: List[ApproverInfo]) -> "ListApproverResponseBodyBuilder":
        self._list_approver_response_body.approver_list = approver_list
        return self

    def build(self) -> "ListApproverResponseBody":
        return self._list_approver_response_body
