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

        this.accounts = new java.util.ArrayList<Account>(accounts);
    }
<p>
The list of Amazon Web Services accounts to invite or to enable. You can invite or enable up to 50 accounts at a
time. For each invited account, the account list contains the account identifier and the Amazon Web Services
account root user email address. For organization accounts in the organization behavior graph, the email address
is not required.
</p>

@param accounts
       The list of Amazon Web Services accounts to invite or to enable. You can invite or enable up to 50
       accounts at a time. For each invited account, the account list contains the account identifier and the
       Amazon Web Services account root user email address. For organization accounts in the organization
       behavior graph, the email address is not required.
aws-java-sdk-detective/src/main/java/com/amazonaws/services/detective/model/CreateMembersRequest.java