# 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 .content_block import ContentBlock
from .progress_rate_new import ProgressRateNew


class UpdateProgressRecordRequestBody(object):
    _types = {
        "content": ContentBlock,
        "progress_rate": ProgressRateNew,
    }

    def __init__(self, d=None):
        self.content: Optional[ContentBlock] = None
        self.progress_rate: Optional[ProgressRateNew] = None
        init(self, d, self._types)

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


class UpdateProgressRecordRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._update_progress_record_request_body = UpdateProgressRecordRequestBody()

    def content(self, content: ContentBlock) -> "UpdateProgressRecordRequestBodyBuilder":
        self._update_progress_record_request_body.content = content
        return self

    def progress_rate(self, progress_rate: ProgressRateNew) -> "UpdateProgressRecordRequestBodyBuilder":
        self._update_progress_record_request_body.progress_rate = progress_rate
        return self

    def build(self) -> "UpdateProgressRecordRequestBody":
        return self._update_progress_record_request_body
