# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .external_application import ExternalApplication


class CreateExternalApplicationResponseBody(object):
    _types = {
        "external_application": ExternalApplication,
    }

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

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


class CreateExternalApplicationResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_external_application_response_body = CreateExternalApplicationResponseBody()

    def external_application(self,
                             external_application: ExternalApplication) -> "CreateExternalApplicationResponseBodyBuilder":
        self._create_external_application_response_body.external_application = external_application
        return self

    def build(self) -> "CreateExternalApplicationResponseBody":
        return self._create_external_application_response_body
