# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .location import Location


class GetLocationResponseBody(object):
    _types = {
        "location": Location,
    }

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

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


class GetLocationResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_location_response_body = GetLocationResponseBody()

    def location(self, location: Location) -> "GetLocationResponseBodyBuilder":
        self._get_location_response_body.location = location
        return self

    def build(self) -> "GetLocationResponseBody":
        return self._get_location_response_body
