# 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 .country_region import CountryRegion


class GetBatchCountryRegionResponseBody(object):
    _types = {
        "data": List[CountryRegion],
    }

    def __init__(self, d=None):
        self.data: Optional[List[CountryRegion]] = None
        init(self, d, self._types)

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


class GetBatchCountryRegionResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_batch_country_region_response_body = GetBatchCountryRegionResponseBody()

    def data(self, data: List[CountryRegion]) -> "GetBatchCountryRegionResponseBodyBuilder":
        self._get_batch_country_region_response_body.data = data
        return self

    def build(self) -> "GetBatchCountryRegionResponseBody":
        return self._get_batch_country_region_response_body
