# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .get_spreadsheet import GetSpreadsheet


class GetSpreadsheetResponseBody(object):
    _types = {
        "spreadsheet": GetSpreadsheet,
    }

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

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


class GetSpreadsheetResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._get_spreadsheet_response_body = GetSpreadsheetResponseBody()

    def spreadsheet(self, spreadsheet: GetSpreadsheet) -> "GetSpreadsheetResponseBodyBuilder":
        self._get_spreadsheet_response_body.spreadsheet = spreadsheet
        return self

    def build(self) -> "GetSpreadsheetResponseBody":
        return self._get_spreadsheet_response_body
