# 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 SecureLabel(object):
    _types = {
        "id": int,
        "name": str,
    }

    def __init__(self, d=None):
        self.id: Optional[int] = None
        self.name: Optional[str] = None
        init(self, d, self._types)

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


class SecureLabelBuilder(object):
    def __init__(self) -> None:
        self._secure_label = SecureLabel()

    def id(self, id: int) -> "SecureLabelBuilder":
        self._secure_label.id = id
        return self

    def name(self, name: str) -> "SecureLabelBuilder":
        self._secure_label.name = name
        return self

    def build(self) -> "SecureLabel":
        return self._secure_label
