public ViolationDetail withResourceViolations(ResourceViolation... resourceViolations) {
        if (this.resourceViolations == null) {
            setResourceViolations(new java.util.ArrayList<ResourceViolation>(resourceViolations.length));
        }
        for (ResourceViolation ele : resourceViolations) {
            this.resourceViolations.add(ele);
        }
        return this;
    }
<p>
List of violations for the requested resource.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setResourceViolations(java.util.Collection)} or {@link #withResourceViolations(java.util.Collection)} if
you want to override the existing values.
</p>

@param resourceViolations
       List of violations for the requested resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-fms/src/main/java/com/amazonaws/services/fms/model/ViolationDetail.java