# 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 .rule import Rule


class ListUserMailboxRuleResponseBody(object):
    _types = {
        "items": List[Rule],
    }

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

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


class ListUserMailboxRuleResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._list_user_mailbox_rule_response_body = ListUserMailboxRuleResponseBody()

    def items(self, items: List[Rule]) -> "ListUserMailboxRuleResponseBodyBuilder":
        self._list_user_mailbox_rule_response_body.items = items
        return self

    def build(self) -> "ListUserMailboxRuleResponseBody":
        return self._list_user_mailbox_rule_response_body
