public ViolationEvent withViolationEventType(ViolationEventType violationEventType) {
        this.violationEventType = violationEventType.toString();
        return this;
    }
<p>
The type of violation event.
</p>

@param violationEventType
       The type of violation event.
@return Returns a reference to this object so that method calls can be chained together.
@see ViolationEventType
aws-java-sdk-iot/src/main/java/com/amazonaws/services/iot/model/ViolationEvent.java