# 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 CreateEmpCustomOrg(object):
    _types = {
        "id": str,
        "rate": float,
    }

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

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


class CreateEmpCustomOrgBuilder(object):
    def __init__(self) -> None:
        self._create_emp_custom_org = CreateEmpCustomOrg()

    def id(self, id: str) -> "CreateEmpCustomOrgBuilder":
        self._create_emp_custom_org.id = id
        return self

    def rate(self, rate: float) -> "CreateEmpCustomOrgBuilder":
        self._create_emp_custom_org.rate = rate
        return self

    def build(self) -> "CreateEmpCustomOrg":
        return self._create_emp_custom_org
