# 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 .qr_code_dimension_value import QrCodeDimensionValue


class OnboardingQrCode(object):
    _types = {
        "id": str,
        "pngs": List[str],
        "url": str,
        "active": bool,
        "created_by": str,
        "updated_by": str,
        "created_at": int,
        "updated_at": int,
        "dimension_values": List[QrCodeDimensionValue],
    }

    def __init__(self, d=None):
        self.id: Optional[str] = None
        self.pngs: Optional[List[str]] = None
        self.url: Optional[str] = None
        self.active: Optional[bool] = None
        self.created_by: Optional[str] = None
        self.updated_by: Optional[str] = None
        self.created_at: Optional[int] = None
        self.updated_at: Optional[int] = None
        self.dimension_values: Optional[List[QrCodeDimensionValue]] = None
        init(self, d, self._types)

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


class OnboardingQrCodeBuilder(object):
    def __init__(self) -> None:
        self._onboarding_qr_code = OnboardingQrCode()

    def id(self, id: str) -> "OnboardingQrCodeBuilder":
        self._onboarding_qr_code.id = id
        return self

    def pngs(self, pngs: List[str]) -> "OnboardingQrCodeBuilder":
        self._onboarding_qr_code.pngs = pngs
        return self

    def url(self, url: str) -> "OnboardingQrCodeBuilder":
        self._onboarding_qr_code.url = url
        return self

    def active(self, active: bool) -> "OnboardingQrCodeBuilder":
        self._onboarding_qr_code.active = active
        return self

    def created_by(self, created_by: str) -> "OnboardingQrCodeBuilder":
        self._onboarding_qr_code.created_by = created_by
        return self

    def updated_by(self, updated_by: str) -> "OnboardingQrCodeBuilder":
        self._onboarding_qr_code.updated_by = updated_by
        return self

    def created_at(self, created_at: int) -> "OnboardingQrCodeBuilder":
        self._onboarding_qr_code.created_at = created_at
        return self

    def updated_at(self, updated_at: int) -> "OnboardingQrCodeBuilder":
        self._onboarding_qr_code.updated_at = updated_at
        return self

    def dimension_values(self, dimension_values: List[QrCodeDimensionValue]) -> "OnboardingQrCodeBuilder":
        self._onboarding_qr_code.dimension_values = dimension_values
        return self

    def build(self) -> "OnboardingQrCode":
        return self._onboarding_qr_code
