public AttackDetail withSubResources(SubResourceSummary... subResources) {
        if (this.subResources == null) {
            setSubResources(new java.util.ArrayList<SubResourceSummary>(subResources.length));
        }
        for (SubResourceSummary ele : subResources) {
            this.subResources.add(ele);
        }
        return this;
    }
<p>
If applicable, additional detail about the resource being attacked, for example, IP address or URL.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setSubResources(java.util.Collection)} or {@link #withSubResources(java.util.Collection)} if you want to
override the existing values.
</p>

@param subResources
       If applicable, additional detail about the resource being attacked, for example, IP address or URL.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-shield/src/main/java/com/amazonaws/services/shield/model/AttackDetail.java