Class Segment
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.medialive.alpha.Segment
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:41.332Z")
@Stability(Experimental)
public class Segment
extends software.amazon.jsii.JsiiObject
(experimental) The length of a media segment for an output group.
Express the length in whole seconds with
or in milliseconds
with
invalid reference
Segment.seconds
. Some output groups (e.g. HLS) only support
whole-second segments and will reject sub-second millisecond values.
invalid reference
Segment.milliseconds
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.medialive.alpha.*; Segment segment = Segment.milliseconds(123);
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Segment
protected Segment(software.amazon.jsii.JsiiObjectRef objRef) -
Segment
protected Segment(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
-
-
Method Details
-
milliseconds
(experimental) A segment length in milliseconds.- Parameters:
value- Number of milliseconds (non-negative integer). This parameter is required.
-
seconds
(experimental) A segment length in whole seconds.- Parameters:
value- Number of seconds (non-negative integer). This parameter is required.
-