docs: public GetDiscoveredResourceCountsResult withResourceCounts(ResourceCount... resourceCounts) {
          if (this.resourceCounts == null) {
              setResourceCounts(new com.amazonaws.internal.SdkInternalList<ResourceCount>(resourceCounts.length));
          }
          for (ResourceCount ele : resourceCounts) {
              this.resourceCounts.add(ele);
          }
          return this;
      }