public CreateSnapshotScheduleRequest withScheduleDefinitions(String... scheduleDefinitions) {
        if (this.scheduleDefinitions == null) {
            setScheduleDefinitions(new com.amazonaws.internal.SdkInternalList<String>(scheduleDefinitions.length));
        }
        for (String ele : scheduleDefinitions) {
            this.scheduleDefinitions.add(ele);
        }
        return this;
    }
<p>
The definition of the snapshot schedule. The definition is made up of schedule expressions, for example
"cron(30 12 *)" or "rate(12 hours)".
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setScheduleDefinitions(java.util.Collection)} or {@link #withScheduleDefinitions(java.util.Collection)}
if you want to override the existing values.
</p>

@param scheduleDefinitions
       The definition of the snapshot schedule. The definition is made up of schedule expressions, for example
       "cron(30 12 *)" or "rate(12 hours)".
@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/CreateSnapshotScheduleRequest.java