# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .email_alias import EmailAlias


class ListPublicMailboxAliasResponseBody(object):
    _types = {
        "items": List[EmailAlias],
    }

    def __init__(self, d=None):
        self.items: Optional[List[EmailAlias]] = None
        init(self, d, self._types)

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


class ListPublicMailboxAliasResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._list_public_mailbox_alias_response_body = ListPublicMailboxAliasResponseBody()

    def items(self, items: List[EmailAlias]) -> "ListPublicMailboxAliasResponseBodyBuilder":
        self._list_public_mailbox_alias_response_body.items = items
        return self

    def build(self) -> "ListPublicMailboxAliasResponseBody":
        return self._list_public_mailbox_alias_response_body
