# Code generated by Lark OpenAPI.

from typing import Optional

from lark_oapi.core.construct import init


class PatchUnitRequestBody(object):
    _types = {
        "name": str,
    }

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

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


class PatchUnitRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._patch_unit_request_body = PatchUnitRequestBody()

    def name(self, name: str) -> "PatchUnitRequestBodyBuilder":
        self._patch_unit_request_body.name = name
        return self

    def build(self) -> "PatchUnitRequestBody":
        return self._patch_unit_request_body
