public DescribeWorkspaceSnapshotsResult withRebuildSnapshots(Snapshot... rebuildSnapshots) {
        if (this.rebuildSnapshots == null) {
            setRebuildSnapshots(new com.amazonaws.internal.SdkInternalList<Snapshot>(rebuildSnapshots.length));
        }
        for (Snapshot ele : rebuildSnapshots) {
            this.rebuildSnapshots.add(ele);
        }
        return this;
    }
<p>
Information about the snapshots that can be used to rebuild a WorkSpace. These snapshots include the user volume.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRebuildSnapshots(java.util.Collection)} or {@link #withRebuildSnapshots(java.util.Collection)} if you
want to override the existing values.
</p>

@param rebuildSnapshots
       Information about the snapshots that can be used to rebuild a WorkSpace. These snapshots include the user
       volume.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-workspaces/src/main/java/com/amazonaws/services/workspaces/model/DescribeWorkspaceSnapshotsResult.java