public CreateRule withCronExpression(String cronExpression) {
        setCronExpression(cronExpression);
        return this;
    }
<p>
The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. 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 User Guide</i>.
</p>

@param cronExpression
       The schedule, as a Cron expression. The schedule interval must be between 1 hour and 1 year. 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 User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-dlm/src/main/java/com/amazonaws/services/dlm/model/CreateRule.java