# 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 Identification(object):
    _types = {
        "identification_number": str,
        "identification_type": int,
    }

    def __init__(self, d=None):
        self.identification_number: Optional[str] = None
        self.identification_type: Optional[int] = None
        init(self, d, self._types)

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


class IdentificationBuilder(object):
    def __init__(self) -> None:
        self._identification = Identification()

    def identification_number(self, identification_number: str) -> "IdentificationBuilder":
        self._identification.identification_number = identification_number
        return self

    def identification_type(self, identification_type: int) -> "IdentificationBuilder":
        self._identification.identification_type = identification_type
        return self

    def build(self) -> "Identification":
        return self._identification
