# 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 ClearDataValidation(object):
    _types = {
        "ranges": List[str],
    }

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

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


class ClearDataValidationBuilder(object):
    def __init__(self) -> None:
        self._clear_data_validation = ClearDataValidation()

    def ranges(self, ranges: List[str]) -> "ClearDataValidationBuilder":
        self._clear_data_validation.ranges = ranges
        return self

    def build(self) -> "ClearDataValidation":
        return self._clear_data_validation
