# 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 OkrProgressRate(object):
    _types = {
        "percent": int,
        "status": str,
    }

    def __init__(self, d=None):
        self.percent: Optional[int] = None
        self.status: Optional[str] = None
        init(self, d, self._types)

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


class OkrProgressRateBuilder(object):
    def __init__(self) -> None:
        self._okr_progress_rate = OkrProgressRate()

    def percent(self, percent: int) -> "OkrProgressRateBuilder":
        self._okr_progress_rate.percent = percent
        return self

    def status(self, status: str) -> "OkrProgressRateBuilder":
        self._okr_progress_rate.status = status
        return self

    def build(self) -> "OkrProgressRate":
        return self._okr_progress_rate
