public ListUsageTotalsResult withTotals(UsageTotal... totals) {
        if (this.totals == null) {
            setTotals(new java.util.ArrayList<UsageTotal>(totals.length));
        }
        for (UsageTotal ele : totals) {
            this.totals.add(ele);
        }
        return this;
    }
<p>
An object with details on the total usage for the requested account.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTotals(java.util.Collection)} or {@link #withTotals(java.util.Collection)} if you want to override the
existing values.
</p>

@param totals
       An object with details on the total usage for the requested account.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/ListUsageTotalsResult.java