# 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 OrgRole(object):
    _types = {
        "api_name": str,
        "security_group_id": str,
        "employment_ids": List[str],
        "inherit_employment_ids": List[str],
    }

    def __init__(self, d=None):
        self.api_name: Optional[str] = None
        self.security_group_id: Optional[str] = None
        self.employment_ids: Optional[List[str]] = None
        self.inherit_employment_ids: Optional[List[str]] = None
        init(self, d, self._types)

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


class OrgRoleBuilder(object):
    def __init__(self) -> None:
        self._org_role = OrgRole()

    def api_name(self, api_name: str) -> "OrgRoleBuilder":
        self._org_role.api_name = api_name
        return self

    def security_group_id(self, security_group_id: str) -> "OrgRoleBuilder":
        self._org_role.security_group_id = security_group_id
        return self

    def employment_ids(self, employment_ids: List[str]) -> "OrgRoleBuilder":
        self._org_role.employment_ids = employment_ids
        return self

    def inherit_employment_ids(self, inherit_employment_ids: List[str]) -> "OrgRoleBuilder":
        self._org_role.inherit_employment_ids = inherit_employment_ids
        return self

    def build(self) -> "OrgRole":
        return self._org_role
