# 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 .campus_volumnteer_info import CampusVolumnteerInfo


class ApplicationDetailPortalInfo(object):
    _types = {
        "campus_volunteer_info": CampusVolumnteerInfo,
    }

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

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


class ApplicationDetailPortalInfoBuilder(object):
    def __init__(self) -> None:
        self._application_detail_portal_info = ApplicationDetailPortalInfo()

    def campus_volunteer_info(self,
                              campus_volunteer_info: CampusVolumnteerInfo) -> "ApplicationDetailPortalInfoBuilder":
        self._application_detail_portal_info.campus_volunteer_info = campus_volunteer_info
        return self

    def build(self) -> "ApplicationDetailPortalInfo":
        return self._application_detail_portal_info
