# 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 ReorderUserMailboxRuleRequestBody(object):
    _types = {
        "rule_ids": List[int],
    }

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

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


class ReorderUserMailboxRuleRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._reorder_user_mailbox_rule_request_body = ReorderUserMailboxRuleRequestBody()

    def rule_ids(self, rule_ids: List[int]) -> "ReorderUserMailboxRuleRequestBodyBuilder":
        self._reorder_user_mailbox_rule_request_body.rule_ids = rule_ids
        return self

    def build(self) -> "ReorderUserMailboxRuleRequestBody":
        return self._reorder_user_mailbox_rule_request_body
