public void setResourceViolations(java.util.Collection<ResourceViolation> resourceViolations) {
        if (resourceViolations == null) {
            this.resourceViolations = null;
            return;
        }

        this.resourceViolations = new java.util.ArrayList<ResourceViolation>(resourceViolations);
    }
<p>
List of violations for the requested resource.
</p>

@param resourceViolations
       List of violations for the requested resource.
aws-java-sdk-fms/src/main/java/com/amazonaws/services/fms/model/ViolationDetail.java