# 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 CountryRegion(object): _types = { "id": str, "alpha3_code": str, } def __init__(self, d=None): self.id: Optional[str] = None self.alpha3_code: Optional[str] = None init(self, d, self._types) @staticmethod def builder() -> "CountryRegionBuilder": return CountryRegionBuilder() class CountryRegionBuilder(object): def __init__(self) -> None: self._country_region = CountryRegion() def id(self, id: str) -> "CountryRegionBuilder": self._country_region.id = id return self def alpha3_code(self, alpha3_code: str) -> "CountryRegionBuilder": self._country_region.alpha3_code = alpha3_code return self def build(self) -> "CountryRegion": return self._country_region