# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init


class PatchPublicMailboxResponseBody(object):
    _types = {
        "public_mailbox_id": str,
        "email": str,
        "name": str,
        "geo": str,
    }

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

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


class PatchPublicMailboxResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._patch_public_mailbox_response_body = PatchPublicMailboxResponseBody()

    def public_mailbox_id(self, public_mailbox_id: str) -> "PatchPublicMailboxResponseBodyBuilder":
        self._patch_public_mailbox_response_body.public_mailbox_id = public_mailbox_id
        return self

    def email(self, email: str) -> "PatchPublicMailboxResponseBodyBuilder":
        self._patch_public_mailbox_response_body.email = email
        return self

    def name(self, name: str) -> "PatchPublicMailboxResponseBodyBuilder":
        self._patch_public_mailbox_response_body.name = name
        return self

    def geo(self, geo: str) -> "PatchPublicMailboxResponseBodyBuilder":
        self._patch_public_mailbox_response_body.geo = geo
        return self

    def build(self) -> "PatchPublicMailboxResponseBody":
        return self._patch_public_mailbox_response_body
