public SubResourceSummary withCounters(SummarizedCounter... counters) {
        if (this.counters == null) {
            setCounters(new java.util.ArrayList<SummarizedCounter>(counters.length));
        }
        for (SummarizedCounter ele : counters) {
            this.counters.add(ele);
        }
        return this;
    }
<p>
The counters that describe the details of the attack.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setCounters(java.util.Collection)} or {@link #withCounters(java.util.Collection)} if you want to override
the existing values.
</p>

@param counters
       The counters that describe the details of the attack.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/model/SubResourceSummary.java