# 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 .repo import Repo


class ListRepoResponseBody(object):
    _types = {
        "items": List[Repo],
    }

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

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


class ListRepoResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._list_repo_response_body = ListRepoResponseBody()

    def items(self, items: List[Repo]) -> "ListRepoResponseBodyBuilder":
        self._list_repo_response_body.items = items
        return self

    def build(self) -> "ListRepoResponseBody":
        return self._list_repo_response_body
