public Rule withScheduleExpression(String scheduleExpression) {
        setScheduleExpression(scheduleExpression);
        return this;
    }
<p>
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". For more information, see <a
href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html">Creating an Amazon
EventBridge rule that runs on a schedule</a>.
</p>

@param scheduleExpression
       The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". For more information, see
       <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-create-rule-schedule.html">Creating
       an Amazon EventBridge rule that runs on a schedule</a>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-events/src/main/java/com/amazonaws/services/cloudwatchevents/model/Rule.java