public void setDurationInSeconds(Integer durationInSeconds) {
        this.durationInSeconds = durationInSeconds;
    }
<p>
The total duration to record the media. If the <code>ScheduleExpression</code> attribute is provided, then the
<code>DurationInSeconds</code> attribute should also be specified.
</p>

@param durationInSeconds
       The total duration to record the media. If the <code>ScheduleExpression</code> attribute is provided, then
       the <code>DurationInSeconds</code> attribute should also be specified.
aws-java-sdk-kinesisvideo/src/main/java/com/amazonaws/services/kinesisvideo/model/ScheduleConfig.java