public GetNetworkResourceCountsResult withNetworkResourceCounts(NetworkResourceCount... networkResourceCounts) {
        if (this.networkResourceCounts == null) {
            setNetworkResourceCounts(new java.util.ArrayList<NetworkResourceCount>(networkResourceCounts.length));
        }
        for (NetworkResourceCount ele : networkResourceCounts) {
            this.networkResourceCounts.add(ele);
        }
        return this;
    }
<p>
The count of resources.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setNetworkResourceCounts(java.util.Collection)} or
{@link #withNetworkResourceCounts(java.util.Collection)} if you want to override the existing values.
</p>

@param networkResourceCounts
       The count of resources.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-networkmanager/src/main/java/com/amazonaws/services/networkmanager/model/GetNetworkResourceCountsResult.java