public GetEnrollmentStatusesForOrganizationResult withAccountEnrollmentStatuses(AccountEnrollmentStatus... accountEnrollmentStatuses) {
        if (this.accountEnrollmentStatuses == null) {
            setAccountEnrollmentStatuses(new java.util.ArrayList<AccountEnrollmentStatus>(accountEnrollmentStatuses.length));
        }
        for (AccountEnrollmentStatus ele : accountEnrollmentStatuses) {
            this.accountEnrollmentStatuses.add(ele);
        }
        return this;
    }
<p>
An array of objects that describe the enrollment statuses of organization member accounts.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAccountEnrollmentStatuses(java.util.Collection)} or
{@link #withAccountEnrollmentStatuses(java.util.Collection)} if you want to override the existing values.
</p>

@param accountEnrollmentStatuses
       An array of objects that describe the enrollment statuses of organization member accounts.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-computeoptimizer/src/main/java/com/amazonaws/services/computeoptimizer/model/GetEnrollmentStatusesForOrganizationResult.java