code: public PartitionGroupConfig setMemberGroupConfigs(Collection<MemberGroupConfig> memberGroupConfigs) {
          isNotNull(memberGroupConfigs, "memberGroupConfigs");
  
          this.memberGroupConfigs.clear();
          this.memberGroupConfigs.addAll(memberGroupConfigs);
          return this;
      }
docs: Adds a MemberGroupConfig. This MemberGroupConfig only has meaning when the group-type is set to
  {@link MemberGroupType#CUSTOM}. See the {@link PartitionGroupConfig} for more information and examples
  of how this mechanism works.
  
  @param memberGroupConfigs the collection of MemberGroupConfig to add
  @return the updated PartitionGroupConfig
  @throws IllegalArgumentException if memberGroupConfigs is {@code null}
  @see #getMemberGroupConfigs()
  @see #clear()
  @see #addMemberGroupConfig(MemberGroupConfig)