code: public GetAggregateDiscoveredResourceCountsResult withGroupedResourceCounts(GroupedResourceCount... groupedResourceCounts) {
          if (this.groupedResourceCounts == null) {
              setGroupedResourceCounts(new com.amazonaws.internal.SdkInternalList<GroupedResourceCount>(groupedResourceCounts.length));
          }
          for (GroupedResourceCount ele : groupedResourceCounts) {
              this.groupedResourceCounts.add(ele);
          }
          return this;
      }
docs: <p>
  Returns a list of GroupedResourceCount objects.
  </p>
  <p>
  <b>NOTE:</b> This method appends the values to the existing list (if any). Use
  {@link #setGroupedResourceCounts(java.util.Collection)} or
  {@link #withGroupedResourceCounts(java.util.Collection)} if you want to override the existing values.
  </p>
  
  @param groupedResourceCounts
  Returns a list of GroupedResourceCount objects.
  @return Returns a reference to this object so that method calls can be chained together.