public ListActiveViolationsResult withActiveViolations(java.util.Collection<ActiveViolation> activeViolations) {
        setActiveViolations(activeViolations);
        return this;
    }
<p>
The list of active violations.
</p>

@param activeViolations
       The list of active violations.
@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/ListActiveViolationsResult.java