# Code generated by Lark OpenAPI.

from typing import Optional, List

from lark_oapi.core.construct import init
from .sheet import Sheet


class QuerySpreadsheetSheetResponseBody(object):
    _types = {
        "sheets": List[Sheet],
    }

    def __init__(self, d=None):
        self.sheets: Optional[List[Sheet]] = None
        init(self, d, self._types)

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


class QuerySpreadsheetSheetResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._query_spreadsheet_sheet_response_body = QuerySpreadsheetSheetResponseBody()

    def sheets(self, sheets: List[Sheet]) -> "QuerySpreadsheetSheetResponseBodyBuilder":
        self._query_spreadsheet_sheet_response_body.sheets = sheets
        return self

    def build(self) -> "QuerySpreadsheetSheetResponseBody":
        return self._query_spreadsheet_sheet_response_body
