# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class CpstBandWidth(object):
    _types = {
        "upper_limit": str,
        "lower_limit": str,
    }

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

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


class CpstBandWidthBuilder(object):
    def __init__(self) -> None:
        self._cpst_band_width = CpstBandWidth()

    def upper_limit(self, upper_limit: str) -> "CpstBandWidthBuilder":
        self._cpst_band_width.upper_limit = upper_limit
        return self

    def lower_limit(self, lower_limit: str) -> "CpstBandWidthBuilder":
        self._cpst_band_width.lower_limit = lower_limit
        return self

    def build(self) -> "CpstBandWidth":
        return self._cpst_band_width
