public ImageLayerAggregation withLayerHashes(StringFilter... layerHashes) {
        if (this.layerHashes == null) {
            setLayerHashes(new java.util.ArrayList<StringFilter>(layerHashes.length));
        }
        for (StringFilter ele : layerHashes) {
            this.layerHashes.add(ele);
        }
        return this;
    }
<p>
The hashes associated with the layers.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLayerHashes(java.util.Collection)} or {@link #withLayerHashes(java.util.Collection)} if you want to
override the existing values.
</p>

@param layerHashes
       The hashes associated with the layers.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-inspector2/src/main/java/com/amazonaws/services/inspector2/model/ImageLayerAggregation.java