public Segment withSegmentDurationSeconds(Integer segmentDurationSeconds) {
        setSegmentDurationSeconds(segmentDurationSeconds);
        return this;
    }
<p>
The duration (in seconds) of each segment. Enter a value equal to, or a multiple of, the input segment duration.
If the value that you enter is different from the input segment duration, MediaPackage rounds segments to the
nearest multiple of the input segment duration.
</p>

@param segmentDurationSeconds
       The duration (in seconds) of each segment. Enter a value equal to, or a multiple of, the input segment
       duration. If the value that you enter is different from the input segment duration, MediaPackage rounds
       segments to the nearest multiple of the input segment duration.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediapackagev2/src/main/java/com/amazonaws/services/mediapackagev2/model/Segment.java