# 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 .eco_background_check_create_event_mobile import EcoBackgroundCheckCreateEventMobile


class EcoBackgroundCheckCreateEventContactInfo(object):
    _types = {
        "name": str,
        "mobile": EcoBackgroundCheckCreateEventMobile,
        "email": str,
    }

    def __init__(self, d=None):
        self.name: Optional[str] = None
        self.mobile: Optional[EcoBackgroundCheckCreateEventMobile] = None
        self.email: Optional[str] = None
        init(self, d, self._types)

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


class EcoBackgroundCheckCreateEventContactInfoBuilder(object):
    def __init__(self) -> None:
        self._eco_background_check_create_event_contact_info = EcoBackgroundCheckCreateEventContactInfo()

    def name(self, name: str) -> "EcoBackgroundCheckCreateEventContactInfoBuilder":
        self._eco_background_check_create_event_contact_info.name = name
        return self

    def mobile(self, mobile: EcoBackgroundCheckCreateEventMobile) -> "EcoBackgroundCheckCreateEventContactInfoBuilder":
        self._eco_background_check_create_event_contact_info.mobile = mobile
        return self

    def email(self, email: str) -> "EcoBackgroundCheckCreateEventContactInfoBuilder":
        self._eco_background_check_create_event_contact_info.email = email
        return self

    def build(self) -> "EcoBackgroundCheckCreateEventContactInfo":
        return self._eco_background_check_create_event_contact_info
