public UsageRecord withUsage(UsageByAccount... usage) {
        if (this.usage == null) {
            setUsage(new java.util.ArrayList<UsageByAccount>(usage.length));
        }
        for (UsageByAccount ele : usage) {
            this.usage.add(ele);
        }
        return this;
    }
<p>
An array of objects that contains usage data and quotas for the account. Each object contains the data for a
specific usage metric and the corresponding quota.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setUsage(java.util.Collection)} or {@link #withUsage(java.util.Collection)} if you want to override the
existing values.
</p>

@param usage
       An array of objects that contains usage data and quotas for the account. Each object contains the data for
       a specific usage metric and the corresponding quota.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-macie2/src/main/java/com/amazonaws/services/macie2/model/UsageRecord.java