# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init
from .iframe_component import IframeComponent


class Iframe(object):
    _types = {
        "component": IframeComponent,
    }

    def __init__(self, d=None):
        self.component: Optional[IframeComponent] = None
        init(self, d, self._types)

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


class IframeBuilder(object):
    def __init__(self) -> None:
        self._iframe = Iframe()

    def component(self, component: IframeComponent) -> "IframeBuilder":
        self._iframe.component = component
        return self

    def build(self) -> "Iframe":
        return self._iframe
