public void setDurationInSeconds(Long durationInSeconds) {
        this.durationInSeconds = durationInSeconds;
    }
<p>
How long, in seconds, for the canary to continue making regular runs after it was created. The runs are performed
according to the schedule in the <code>Expression</code> value.
</p>

@param durationInSeconds
       How long, in seconds, for the canary to continue making regular runs after it was created. The runs are
       performed according to the schedule in the <code>Expression</code> value.
aws-java-sdk-synthetics/src/main/java/com/amazonaws/services/synthetics/model/CanaryScheduleOutput.java