public CreateScheduledActionResult withSchedule(String schedule) {
        setSchedule(schedule);
        return this;
    }
<p>
The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations must be
separated by at least one hour.
</p>
<p>
Format of at expressions is "<code>at(yyyy-mm-ddThh:mm:ss)</code>". For example, "
<code>at(2016-03-04T17:27:00)</code>".
</p>
<p>
Format of cron expressions is "<code>cron(Minutes Hours Day-of-month Month Day-of-week Year)</code>
". For example, "<code>cron(0 10 ? * MON *)</code>
". For more information, see <a href="https://docs.aws.amazon.com
/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions">Cron Expressions</a> in the <i>Amazon
CloudWatch Events User Guide</i>.
</p>

@param schedule
       The schedule for a one-time (at format) or recurring (cron format) scheduled action. Schedule invocations
       must be separated by at least one hour.</p>
       <p>
       Format of at expressions is "<code>at(yyyy-mm-ddThh:mm:ss)</code>". For example, "
       <code>at(2016-03-04T17:27:00)</code>".
       </p>
       <p>
       Format of cron expressions is "<code>cron(Minutes Hours Day-of-month Month Day-of-week Year)</code>
       ". For example, "<code>cron(0 10 ? * MON *)</code>
       ". For more information, see <a href="https://docs.aws.amazon
       .com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions">Cron Expressions</a> in the
       <i>Amazon CloudWatch Events User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-redshift/src/main/java/com/amazonaws/services/redshift/model/CreateScheduledActionResult.java