# 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 OpenFeedStatusLabel(object):
    _types = {
        "text": str,
        "type": str,
    }

    def __init__(self, d=None):
        self.text: Optional[str] = None
        self.type: Optional[str] = None
        init(self, d, self._types)

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


class OpenFeedStatusLabelBuilder(object):
    def __init__(self) -> None:
        self._open_feed_status_label = OpenFeedStatusLabel()

    def text(self, text: str) -> "OpenFeedStatusLabelBuilder":
        self._open_feed_status_label.text = text
        return self

    def type(self, type: str) -> "OpenFeedStatusLabelBuilder":
        self._open_feed_status_label.type = type
        return self

    def build(self) -> "OpenFeedStatusLabel":
        return self._open_feed_status_label
