# 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 UploadFinishMediaRequestBody(object):
    _types = {
        "upload_id": str,
        "block_num": int,
    }

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

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


class UploadFinishMediaRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._upload_finish_media_request_body = UploadFinishMediaRequestBody()

    def upload_id(self, upload_id: str) -> "UploadFinishMediaRequestBodyBuilder":
        self._upload_finish_media_request_body.upload_id = upload_id
        return self

    def block_num(self, block_num: int) -> "UploadFinishMediaRequestBodyBuilder":
        self._upload_finish_media_request_body.block_num = block_num
        return self

    def build(self) -> "UploadFinishMediaRequestBody":
        return self._upload_finish_media_request_body
