docs: public void setResourceGroups(java.util.Collection<ResourceGroup> resourceGroups) {
          if (resourceGroups == null) {
              this.resourceGroups = null;
              return;
          }
  
          this.resourceGroups = new java.util.ArrayList<ResourceGroup>(resourceGroups);
      }