# 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 .card import Card


class UpdateCardRequestBody(object):
    _types = {
        "card": Card,
        "uuid": str,
        "sequence": int,
    }

    def __init__(self, d=None):
        self.card: Optional[Card] = None
        self.uuid: Optional[str] = None
        self.sequence: Optional[int] = None
        init(self, d, self._types)

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


class UpdateCardRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._update_card_request_body = UpdateCardRequestBody()

    def card(self, card: Card) -> "UpdateCardRequestBodyBuilder":
        self._update_card_request_body.card = card
        return self

    def uuid(self, uuid: str) -> "UpdateCardRequestBodyBuilder":
        self._update_card_request_body.uuid = uuid
        return self

    def sequence(self, sequence: int) -> "UpdateCardRequestBodyBuilder":
        self._update_card_request_body.sequence = sequence
        return self

    def build(self) -> "UpdateCardRequestBody":
        return self._update_card_request_body
