public void setAccounts(java.util.Collection<UsageTopAccountResult> accounts) {
        if (accounts == null) {
            this.accounts = null;
            return;
        }

        this.accounts = new java.util.ArrayList<UsageTopAccountResult>(accounts);
    }
<p>
The accounts that contributed to the total usage cost.
</p>

@param accounts
       The accounts that contributed to the total usage cost.
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/UsageTopAccountsResult.java