# 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 WriteUserGroupUserRelRequestBody(object):
    _types = {
        "group_id": str,
        "scope_visible_setting": int,
        "user_ids": List[str],
    }

    def __init__(self, d=None):
        self.group_id: Optional[str] = None
        self.scope_visible_setting: Optional[int] = None
        self.user_ids: Optional[List[str]] = None
        init(self, d, self._types)

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


class WriteUserGroupUserRelRequestBodyBuilder(object):
    def __init__(self) -> None:
        self._write_user_group_user_rel_request_body = WriteUserGroupUserRelRequestBody()

    def group_id(self, group_id: str) -> "WriteUserGroupUserRelRequestBodyBuilder":
        self._write_user_group_user_rel_request_body.group_id = group_id
        return self

    def scope_visible_setting(self, scope_visible_setting: int) -> "WriteUserGroupUserRelRequestBodyBuilder":
        self._write_user_group_user_rel_request_body.scope_visible_setting = scope_visible_setting
        return self

    def user_ids(self, user_ids: List[str]) -> "WriteUserGroupUserRelRequestBodyBuilder":
        self._write_user_group_user_rel_request_body.user_ids = user_ids
        return self

    def build(self) -> "WriteUserGroupUserRelRequestBody":
        return self._write_user_group_user_rel_request_body
