# 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 AgreeApprovalTaskRequestBody(object):
    _types = {
        "user_id": str,
        "opinion": str,
    }

    def __init__(self, d=None):
        self.user_id: Optional[str] = None
        self.opinion: Optional[str] = None
        init(self, d, self._types)

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


class AgreeApprovalTaskRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._agree_approval_task_request_body = AgreeApprovalTaskRequestBody()

    def user_id(self, user_id: str) -> "AgreeApprovalTaskRequestBodyBuilder":
        self._agree_approval_task_request_body.user_id = user_id
        return self

    def opinion(self, opinion: str) -> "AgreeApprovalTaskRequestBodyBuilder":
        self._agree_approval_task_request_body.opinion = opinion
        return self

    def build(self) -> "AgreeApprovalTaskRequestBody":
        return self._agree_approval_task_request_body
