# 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 LumpSumPaymentOperateResult(object):
    _types = {
        "id": str,
        "unique_id": str,
        "code": int,
        "message": str,
    }

    def __init__(self, d=None):
        self.id: Optional[str] = None
        self.unique_id: Optional[str] = None
        self.code: Optional[int] = None
        self.message: Optional[str] = None
        init(self, d, self._types)

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


class LumpSumPaymentOperateResultBuilder(object):
    def __init__(self) -> None:
        self._lump_sum_payment_operate_result = LumpSumPaymentOperateResult()

    def id(self, id: str) -> "LumpSumPaymentOperateResultBuilder":
        self._lump_sum_payment_operate_result.id = id
        return self

    def unique_id(self, unique_id: str) -> "LumpSumPaymentOperateResultBuilder":
        self._lump_sum_payment_operate_result.unique_id = unique_id
        return self

    def code(self, code: int) -> "LumpSumPaymentOperateResultBuilder":
        self._lump_sum_payment_operate_result.code = code
        return self

    def message(self, message: str) -> "LumpSumPaymentOperateResultBuilder":
        self._lump_sum_payment_operate_result.message = message
        return self

    def build(self) -> "LumpSumPaymentOperateResult":
        return self._lump_sum_payment_operate_result
