# 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 .tw_mainland_travel_permit import TwMainlandTravelPermit


class RecognizeTwMainlandTravelPermitResponseBody(object):
    _types = {
        "tw_mainland_travel_permit": TwMainlandTravelPermit,
    }

    def __init__(self, d=None):
        self.tw_mainland_travel_permit: Optional[TwMainlandTravelPermit] = None
        init(self, d, self._types)

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


class RecognizeTwMainlandTravelPermitResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._recognize_tw_mainland_travel_permit_response_body = RecognizeTwMainlandTravelPermitResponseBody()

    def tw_mainland_travel_permit(self,
                                  tw_mainland_travel_permit: TwMainlandTravelPermit) -> "RecognizeTwMainlandTravelPermitResponseBodyBuilder":
        self._recognize_tw_mainland_travel_permit_response_body.tw_mainland_travel_permit = tw_mainland_travel_permit
        return self

    def build(self) -> "RecognizeTwMainlandTravelPermitResponseBody":
        return self._recognize_tw_mainland_travel_permit_response_body
