# 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 CreateUnitRequestBody(object):
    _types = {
        "unit_id": str,
        "name": str,
        "unit_type": str,
    }

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

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


class CreateUnitRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._create_unit_request_body = CreateUnitRequestBody()

    def unit_id(self, unit_id: str) -> "CreateUnitRequestBodyBuilder":
        self._create_unit_request_body.unit_id = unit_id
        return self

    def name(self, name: str) -> "CreateUnitRequestBodyBuilder":
        self._create_unit_request_body.name = name
        return self

    def unit_type(self, unit_type: str) -> "CreateUnitRequestBodyBuilder":
        self._create_unit_request_body.unit_type = unit_type
        return self

    def build(self) -> "CreateUnitRequestBody":
        return self._create_unit_request_body
