public DatasetTrigger withSchedule(Schedule schedule) {
        setSchedule(schedule);
        return this;
    }
<p>
The Schedule when the trigger is initiated.
</p>

@param schedule
       The Schedule when the trigger is initiated.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iotanalytics/src/main/java/com/amazonaws/services/iotanalytics/model/DatasetTrigger.java