public CreateRuleRequest withTriggerEventSource(RuleTriggerEventSource triggerEventSource) {
        setTriggerEventSource(triggerEventSource);
        return this;
    }
<p>
The event source to trigger the rule.
</p>

@param triggerEventSource
       The event source to trigger the rule.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-connect/src/main/java/com/amazonaws/services/connect/model/CreateRuleRequest.java