# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class ProtectedSheet(object):
    _types = {
        "sheet_id": str,
    }

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

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


class ProtectedSheetBuilder(object):
    def __init__(self) -> None:
        self._protected_sheet = ProtectedSheet()

    def sheet_id(self, sheet_id: str) -> "ProtectedSheetBuilder":
        self._protected_sheet.sheet_id = sheet_id
        return self

    def build(self) -> "ProtectedSheet":
        return self._protected_sheet
