public PendingMaintenance withSchedule(MaintenanceSchedule schedule) {
        setSchedule(schedule);
        return this;
    }
<p>
The maintenance schedule for the runtime engine version.
</p>

@param schedule
       The maintenance schedule for the runtime engine version.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mainframemodernization/src/main/java/com/amazonaws/services/mainframemodernization/model/PendingMaintenance.java