# 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 .process_link import ProcessLink
from .dataengine_i18n import DataengineI18n
from .dataengine_i18n import DataengineI18n


class ProcessSystemTodoItem(object):
    _types = {
        "approver_id": str,
        "type": int,
        "links": ProcessLink,
        "operator_name": DataengineI18n,
        "node_name": DataengineI18n,
        "create_time": str,
        "node_definition_id": str,
    }

    def __init__(self, d=None):
        self.approver_id: Optional[str] = None
        self.type: Optional[int] = None
        self.links: Optional[ProcessLink] = None
        self.operator_name: Optional[DataengineI18n] = None
        self.node_name: Optional[DataengineI18n] = None
        self.create_time: Optional[str] = None
        self.node_definition_id: Optional[str] = None
        init(self, d, self._types)

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


class ProcessSystemTodoItemBuilder(object):
    def __init__(self) -> None:
        self._process_system_todo_item = ProcessSystemTodoItem()

    def approver_id(self, approver_id: str) -> "ProcessSystemTodoItemBuilder":
        self._process_system_todo_item.approver_id = approver_id
        return self

    def type(self, type: int) -> "ProcessSystemTodoItemBuilder":
        self._process_system_todo_item.type = type
        return self

    def links(self, links: ProcessLink) -> "ProcessSystemTodoItemBuilder":
        self._process_system_todo_item.links = links
        return self

    def operator_name(self, operator_name: DataengineI18n) -> "ProcessSystemTodoItemBuilder":
        self._process_system_todo_item.operator_name = operator_name
        return self

    def node_name(self, node_name: DataengineI18n) -> "ProcessSystemTodoItemBuilder":
        self._process_system_todo_item.node_name = node_name
        return self

    def create_time(self, create_time: str) -> "ProcessSystemTodoItemBuilder":
        self._process_system_todo_item.create_time = create_time
        return self

    def node_definition_id(self, node_definition_id: str) -> "ProcessSystemTodoItemBuilder":
        self._process_system_todo_item.node_definition_id = node_definition_id
        return self

    def build(self) -> "ProcessSystemTodoItem":
        return self._process_system_todo_item
