public ResourceDetails withNetAppONTAPVolumes(NetAppONTAPVolume... netAppONTAPVolumes) {
        if (this.netAppONTAPVolumes == null) {
            setNetAppONTAPVolumes(new java.util.ArrayList<NetAppONTAPVolume>(netAppONTAPVolumes.length));
        }
        for (NetAppONTAPVolume ele : netAppONTAPVolumes) {
            this.netAppONTAPVolumes.add(ele);
        }
        return this;
    }
<p>
The information that DataSync Discovery collects about volumes in your on-premises storage system.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setNetAppONTAPVolumes(java.util.Collection)} or {@link #withNetAppONTAPVolumes(java.util.Collection)} if
you want to override the existing values.
</p>

@param netAppONTAPVolumes
       The information that DataSync Discovery collects about volumes in your on-premises storage system.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-datasync/src/main/java/com/amazonaws/services/datasync/model/ResourceDetails.java