public DescribeMalwareScansResult withScans(Scan... scans) {
        if (this.scans == null) {
            setScans(new java.util.ArrayList<Scan>(scans.length));
        }
        for (Scan ele : scans) {
            this.scans.add(ele);
        }
        return this;
    }
<p>
Contains information about malware scans.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setScans(java.util.Collection)} or {@link #withScans(java.util.Collection)} if you want to override the
existing values.
</p>

@param scans
       Contains information about malware scans.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-guardduty/src/main/java/com/amazonaws/services/guardduty/model/DescribeMalwareScansResult.java