# 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 .filter_view_condition import FilterViewCondition


class CreateSpreadsheetSheetFilterViewConditionResponseBody(object):
    _types = {
        "condition": FilterViewCondition,
    }

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

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


class CreateSpreadsheetSheetFilterViewConditionResponseBodyBuilder(object):
    def __init__(self) -> None:
        self._create_spreadsheet_sheet_filter_view_condition_response_body = CreateSpreadsheetSheetFilterViewConditionResponseBody()

    def condition(self,
                  condition: FilterViewCondition) -> "CreateSpreadsheetSheetFilterViewConditionResponseBodyBuilder":
        self._create_spreadsheet_sheet_filter_view_condition_response_body.condition = condition
        return self

    def build(self) -> "CreateSpreadsheetSheetFilterViewConditionResponseBody":
        return self._create_spreadsheet_sheet_filter_view_condition_response_body
