public AutoTuneOptions withMaintenanceSchedules(AutoTuneMaintenanceSchedule... maintenanceSchedules) {
        if (this.maintenanceSchedules == null) {
            setMaintenanceSchedules(new java.util.ArrayList<AutoTuneMaintenanceSchedule>(maintenanceSchedules.length));
        }
        for (AutoTuneMaintenanceSchedule ele : maintenanceSchedules) {
            this.maintenanceSchedules.add(ele);
        }
        return this;
    }
<p>
Specifies list of maitenance schedules. See the <a
href="https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html"
target="_blank">Developer Guide</a> for more information.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setMaintenanceSchedules(java.util.Collection)} or {@link #withMaintenanceSchedules(java.util.Collection)}
if you want to override the existing values.
</p>

@param maintenanceSchedules
       Specifies list of maitenance schedules. See the <a
       href="https://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/auto-tune.html"
       target="_blank">Developer Guide</a> for more information.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-elasticsearch/src/main/java/com/amazonaws/services/elasticsearch/model/AutoTuneOptions.java