public void setSchedule(CanaryScheduleInput schedule) {
        this.schedule = schedule;
    }
<p>
A structure that contains information about how often the canary is to run and when these test runs are to stop.
</p>

@param schedule
       A structure that contains information about how often the canary is to run and when these test runs are to
       stop.
aws-java-sdk-synthetics/src/main/java/com/amazonaws/services/synthetics/model/CreateCanaryRequest.java