public ViolationDetail withResourceViolations(java.util.Collection<ResourceViolation> resourceViolations) {
        setResourceViolations(resourceViolations);
        return this;
    }
<p>
List of violations for the requested resource.
</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