public SourceProperties withDisks(Disk... disks) {
        if (this.disks == null) {
            setDisks(new java.util.ArrayList<Disk>(disks.length));
        }
        for (Disk ele : disks) {
            this.disks.add(ele);
        }
        return this;
    }
<p>
An array of disks.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDisks(java.util.Collection)} or {@link #withDisks(java.util.Collection)} if you want to override the
existing values.
</p>

@param disks
       An array of disks.
@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/SourceProperties.java