# 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 .agency import Agency


class QueryAgencyResponseBody(object):
    _types = {
        "items": List[Agency],
    }

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

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


class QueryAgencyResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._query_agency_response_body = QueryAgencyResponseBody()

    def items(self, items: List[Agency]) -> "QueryAgencyResponseBodyBuilder":
        self._query_agency_response_body.items = items
        return self

    def build(self) -> "QueryAgencyResponseBody":
        return self._query_agency_response_body
