# Code generated by Lark OpenAPI.

from typing import Any, Optional, Union, Dict, List, Set, IO, Callable, Type
from lark_oapi.core.construct import init
from .profile_setting_custom_field import ProfileSettingCustomField


class ProfileSettingCustomGroupItem(object):
    _types = {
        "custom_fields": List[ProfileSettingCustomField],
    }

    def __init__(self, d=None):
        self.custom_fields: Optional[List[ProfileSettingCustomField]] = None
        init(self, d, self._types)

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


class ProfileSettingCustomGroupItemBuilder(object):
    def __init__(self) -> None:
        self._profile_setting_custom_group_item = ProfileSettingCustomGroupItem()

    def custom_fields(self, custom_fields: List[ProfileSettingCustomField]) -> "ProfileSettingCustomGroupItemBuilder":
        self._profile_setting_custom_group_item.custom_fields = custom_fields
        return self

    def build(self) -> "ProfileSettingCustomGroupItem":
        return self._profile_setting_custom_group_item
