public DescribeVolumesRequest withVolumeIds(String... volumeIds) {
        if (this.volumeIds == null) {
            setVolumeIds(new java.util.ArrayList<String>(volumeIds.length));
        }
        for (String ele : volumeIds) {
            this.volumeIds.add(ele);
        }
        return this;
    }
<p>
The IDs of the volumes whose descriptions you want to retrieve.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setVolumeIds(java.util.Collection)} or {@link #withVolumeIds(java.util.Collection)} if you want to
override the existing values.
</p>

@param volumeIds
       The IDs of the volumes whose descriptions you want to retrieve.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-fsx/src/main/java/com/amazonaws/services/fsx/model/DescribeVolumesRequest.java