public AuditFinding withRelatedResources(RelatedResource... relatedResources) {
        if (this.relatedResources == null) {
            setRelatedResources(new java.util.ArrayList<RelatedResource>(relatedResources.length));
        }
        for (RelatedResource ele : relatedResources) {
            this.relatedResources.add(ele);
        }
        return this;
    }
<p>
The list of related resources.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setRelatedResources(java.util.Collection)} or {@link #withRelatedResources(java.util.Collection)} if you
want to override the existing values.
</p>

@param relatedResources
       The list of related resources.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/AuditFinding.java