public ListAccessPreviewsResult withAccessPreviews(AccessPreviewSummary... accessPreviews) {
        if (this.accessPreviews == null) {
            setAccessPreviews(new java.util.ArrayList<AccessPreviewSummary>(accessPreviews.length));
        }
        for (AccessPreviewSummary ele : accessPreviews) {
            this.accessPreviews.add(ele);
        }
        return this;
    }
<p>
A list of access previews retrieved for the analyzer.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAccessPreviews(java.util.Collection)} or {@link #withAccessPreviews(java.util.Collection)} if you want
to override the existing values.
</p>

@param accessPreviews
       A list of access previews retrieved for the analyzer.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/ListAccessPreviewsResult.java