# 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 .subregion import Subregion


class GetSubregionResponseBody(object):
    _types = {
        "subregion": Subregion,
    }

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

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


class GetSubregionResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_subregion_response_body = GetSubregionResponseBody()

    def subregion(self, subregion: Subregion) -> "GetSubregionResponseBodyBuilder":
        self._get_subregion_response_body.subregion = subregion
        return self

    def build(self) -> "GetSubregionResponseBody":
        return self._get_subregion_response_body
