# 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 .app_collaborator import AppCollaborator


class GetApplicationCollaboratorsResponseBody(object):
    _types = {
        "collaborators": List[AppCollaborator],
    }

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

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


class GetApplicationCollaboratorsResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_application_collaborators_response_body = GetApplicationCollaboratorsResponseBody()

    def collaborators(self, collaborators: List[AppCollaborator]) -> "GetApplicationCollaboratorsResponseBodyBuilder":
        self._get_application_collaborators_response_body.collaborators = collaborators
        return self

    def build(self) -> "GetApplicationCollaboratorsResponseBody":
        return self._get_application_collaborators_response_body
