public SnapshotConfiguration withFileGroups(SnapshotFileGroup... fileGroups) {
        if (this.fileGroups == null) {
            setFileGroups(new java.util.ArrayList<SnapshotFileGroup>(fileGroups.length));
        }
        for (SnapshotFileGroup ele : fileGroups) {
            this.fileGroups.add(ele);
        }
        return this;
    }
<p>
A list of <code>SnapshotJobResultFileGroup</code> objects that contain information about the snapshot that is
generated. This list can hold a maximum of 6 <code>FileGroup</code> configurations.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFileGroups(java.util.Collection)} or {@link #withFileGroups(java.util.Collection)} if you want to
override the existing values.
</p>

@param fileGroups
       A list of <code>SnapshotJobResultFileGroup</code> objects that contain information about the snapshot that
       is generated. This list can hold a maximum of 6 <code>FileGroup</code> configurations.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-quicksight/src/main/java/com/amazonaws/services/quicksight/model/SnapshotConfiguration.java