# 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 HkmMainlandTravelPermitEntity(object):
    _types = {
        "type": str,
        "value": str,
    }

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

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


class HkmMainlandTravelPermitEntityBuilder(object):
    def __init__(self) -> None:
        self._hkm_mainland_travel_permit_entity = HkmMainlandTravelPermitEntity()

    def type(self, type: str) -> "HkmMainlandTravelPermitEntityBuilder":
        self._hkm_mainland_travel_permit_entity.type = type
        return self

    def value(self, value: str) -> "HkmMainlandTravelPermitEntityBuilder":
        self._hkm_mainland_travel_permit_entity.value = value
        return self

    def build(self) -> "HkmMainlandTravelPermitEntity":
        return self._hkm_mainland_travel_permit_entity
