public TriggerConfig withTriggerType(String triggerType) {
        setTriggerType(triggerType);
        return this;
    }
<p>
Specifies the type of flow trigger. This can be <code>OnDemand</code>, <code>Scheduled</code>, or
<code>Event</code>.
</p>

@param triggerType
       Specifies the type of flow trigger. This can be <code>OnDemand</code>, <code>Scheduled</code>, or
       <code>Event</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see TriggerType
aws-java-sdk-appflow/src/main/java/com/amazonaws/services/appflow/model/TriggerConfig.java