public ListClusterSnapshotsResult withSnapshots(ClusterSnapshotInList... snapshots) {
        if (this.snapshots == null) {
            setSnapshots(new java.util.ArrayList<ClusterSnapshotInList>(snapshots.length));
        }
        for (ClusterSnapshotInList ele : snapshots) {
            this.snapshots.add(ele);
        }
        return this;
    }
<p>
A list of snapshots for a specified elastic cluster.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSnapshots(java.util.Collection)} or {@link #withSnapshots(java.util.Collection)} if you want to
override the existing values.
</p>

@param snapshots
       A list of snapshots for a specified elastic cluster.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-docdbelastic/src/main/java/com/amazonaws/services/docdbelastic/model/ListClusterSnapshotsResult.java