public RecoverySnapshot withEbsSnapshots(String... ebsSnapshots) {
        if (this.ebsSnapshots == null) {
            setEbsSnapshots(new java.util.ArrayList<String>(ebsSnapshots.length));
        }
        for (String ele : ebsSnapshots) {
            this.ebsSnapshots.add(ele);
        }
        return this;
    }
<p>
A list of EBS snapshots.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setEbsSnapshots(java.util.Collection)} or {@link #withEbsSnapshots(java.util.Collection)} if you want to
override the existing values.
</p>

@param ebsSnapshots
       A list of EBS snapshots.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-drs/src/main/java/com/amazonaws/services/drs/model/RecoverySnapshot.java