# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class BottomBorderStyle(object):
    _types = {
        "style": str,
        "color": str,
    }

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

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


class BottomBorderStyleBuilder(object):
    def __init__(self) -> None:
        self._bottom_border_style = BottomBorderStyle()

    def style(self, style: str) -> "BottomBorderStyleBuilder":
        self._bottom_border_style.style = style
        return self

    def color(self, color: str) -> "BottomBorderStyleBuilder":
        self._bottom_border_style.color = color
        return self

    def build(self) -> "BottomBorderStyle":
        return self._bottom_border_style
