# 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 .mail_contact import MailContact


class CreateUserMailboxMailContactResponseBody(object):
    _types = {
        "mail_contact": MailContact,
    }

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

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


class CreateUserMailboxMailContactResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_user_mailbox_mail_contact_response_body = CreateUserMailboxMailContactResponseBody()

    def mail_contact(self, mail_contact: MailContact) -> "CreateUserMailboxMailContactResponseBodyBuilder":
        self._create_user_mailbox_mail_contact_response_body.mail_contact = mail_contact
        return self

    def build(self) -> "CreateUserMailboxMailContactResponseBody":
        return self._create_user_mailbox_mail_contact_response_body
