public ViolationEvent withViolationId(String violationId) {
        setViolationId(violationId);
        return this;
    }
<p>
The ID of the violation event.
</p>

@param violationId
       The ID of the violation event.
@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/ViolationEvent.java