public UsageRecord withUsage(java.util.Collection<UsageByAccount> usage) {
        setUsage(usage);
        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>

@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