# 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 .enum import Enum


class SignatureHumanInfo(object):
    _types = {
        "employee_id": str,
        "pre_hire_id": str,
        "user_id_type": str,
        "human_type": Enum,
    }

    def __init__(self, d=None):
        self.employee_id: Optional[str] = None
        self.pre_hire_id: Optional[str] = None
        self.user_id_type: Optional[str] = None
        self.human_type: Optional[Enum] = None
        init(self, d, self._types)

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


class SignatureHumanInfoBuilder(object):
    def __init__(self) -> None:
        self._signature_human_info = SignatureHumanInfo()

    def employee_id(self, employee_id: str) -> "SignatureHumanInfoBuilder":
        self._signature_human_info.employee_id = employee_id
        return self

    def pre_hire_id(self, pre_hire_id: str) -> "SignatureHumanInfoBuilder":
        self._signature_human_info.pre_hire_id = pre_hire_id
        return self

    def user_id_type(self, user_id_type: str) -> "SignatureHumanInfoBuilder":
        self._signature_human_info.user_id_type = user_id_type
        return self

    def human_type(self, human_type: Enum) -> "SignatureHumanInfoBuilder":
        self._signature_human_info.human_type = human_type
        return self

    def build(self) -> "SignatureHumanInfo":
        return self._signature_human_info
