use Schedule
fun useSchedule(schedule: CapacitySchedule, changeRule: CapacityChangeRule = CapacityChangeRule.IGNORE)
Tells the resource to listen and react to capacity changes in the supplied Schedule.
Parameters
schedule
the schedule to use, must not be null