Class HlsPackage
- java.lang.Object
-
- software.amazon.awssdk.services.mediapackage.model.HlsPackage
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HlsPackage.Builder,HlsPackage>
@Generated("software.amazon.awssdk:codegen") public final class HlsPackage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HlsPackage.Builder,HlsPackage>
An HTTP Live Streaming (HLS) packaging configuration.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHlsPackage.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AdMarkersadMarkers()This setting controls how ad markers are included in the packaged OriginEndpoint.StringadMarkersAsString()This setting controls how ad markers are included in the packaged OriginEndpoint.AdsOnDeliveryRestrictionsadsOnDeliveryRestrictions()Returns the value of the AdsOnDeliveryRestrictions property for this object.StringadsOnDeliveryRestrictionsAsString()Returns the value of the AdsOnDeliveryRestrictions property for this object.List<AdTriggersElement>adTriggers()Returns the value of the AdTriggers property for this object.List<String>adTriggersAsStrings()Returns the value of the AdTriggers property for this object.static HlsPackage.Builderbuilder()HlsEncryptionencryption()Returns the value of the Encryption property for this object.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)booleanhasAdTriggers()For responses, this returns true if the service returned a value for the AdTriggers property.inthashCode()BooleanincludeDvbSubtitles()When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output.BooleanincludeIframeOnlyStream()When enabled, an I-Frame only stream will be included in the output.PlaylistTypeplaylistType()The HTTP Live Streaming (HLS) playlist type.StringplaylistTypeAsString()The HTTP Live Streaming (HLS) playlist type.IntegerplaylistWindowSeconds()Time window (in seconds) contained in each parent manifest.IntegerprogramDateTimeIntervalSeconds()The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests.List<SdkField<?>>sdkFields()IntegersegmentDurationSeconds()Duration (in seconds) of each fragment.static Class<? extends HlsPackage.Builder>serializableBuilderClass()StreamSelectionstreamSelection()Returns the value of the StreamSelection property for this object.HlsPackage.BuildertoBuilder()StringtoString()Returns a string representation of this object.BooleanuseAudioRenditionGroup()When enabled, audio streams will be placed in rendition groups in the output.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
adMarkers
public final AdMarkers adMarkers()
This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value that is greater than 0.If the service returns an enum value that is not available in the current SDK version,
adMarkerswill returnAdMarkers.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromadMarkersAsString().- Returns:
- This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value that is greater than 0.
- See Also:
AdMarkers
-
adMarkersAsString
public final String adMarkersAsString()
This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value that is greater than 0.If the service returns an enum value that is not available in the current SDK version,
adMarkerswill returnAdMarkers.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromadMarkersAsString().- Returns:
- This setting controls how ad markers are included in the packaged OriginEndpoint. "NONE" will omit all SCTE-35 ad markers from the output. "PASSTHROUGH" causes the manifest to contain a copy of the SCTE-35 ad markers (comments) taken directly from the input HTTP Live Streaming (HLS) manifest. "SCTE35_ENHANCED" generates ad markers and blackout tags based on SCTE-35 messages in the input source. "DATERANGE" inserts EXT-X-DATERANGE tags to signal ad and program transition events in HLS and CMAF manifests. For this option, you must set a programDateTimeIntervalSeconds value that is greater than 0.
- See Also:
AdMarkers
-
adTriggers
public final List<AdTriggersElement> adTriggers()
Returns the value of the AdTriggers property for this object.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAdTriggers()method.- Returns:
- The value of the AdTriggers property for this object.
-
hasAdTriggers
public final boolean hasAdTriggers()
For responses, this returns true if the service returned a value for the AdTriggers property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
adTriggersAsStrings
public final List<String> adTriggersAsStrings()
Returns the value of the AdTriggers property for this object.Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasAdTriggers()method.- Returns:
- The value of the AdTriggers property for this object.
-
adsOnDeliveryRestrictions
public final AdsOnDeliveryRestrictions adsOnDeliveryRestrictions()
Returns the value of the AdsOnDeliveryRestrictions property for this object.If the service returns an enum value that is not available in the current SDK version,
adsOnDeliveryRestrictionswill returnAdsOnDeliveryRestrictions.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromadsOnDeliveryRestrictionsAsString().- Returns:
- The value of the AdsOnDeliveryRestrictions property for this object.
- See Also:
AdsOnDeliveryRestrictions
-
adsOnDeliveryRestrictionsAsString
public final String adsOnDeliveryRestrictionsAsString()
Returns the value of the AdsOnDeliveryRestrictions property for this object.If the service returns an enum value that is not available in the current SDK version,
adsOnDeliveryRestrictionswill returnAdsOnDeliveryRestrictions.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromadsOnDeliveryRestrictionsAsString().- Returns:
- The value of the AdsOnDeliveryRestrictions property for this object.
- See Also:
AdsOnDeliveryRestrictions
-
encryption
public final HlsEncryption encryption()
Returns the value of the Encryption property for this object.- Returns:
- The value of the Encryption property for this object.
-
includeDvbSubtitles
public final Boolean includeDvbSubtitles()
When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output.- Returns:
- When enabled, MediaPackage passes through digital video broadcasting (DVB) subtitles into the output.
-
includeIframeOnlyStream
public final Boolean includeIframeOnlyStream()
When enabled, an I-Frame only stream will be included in the output.- Returns:
- When enabled, an I-Frame only stream will be included in the output.
-
playlistType
public final PlaylistType playlistType()
The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.If the service returns an enum value that is not available in the current SDK version,
playlistTypewill returnPlaylistType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromplaylistTypeAsString().- Returns:
- The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
- See Also:
PlaylistType
-
playlistTypeAsString
public final String playlistTypeAsString()
The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.If the service returns an enum value that is not available in the current SDK version,
playlistTypewill returnPlaylistType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromplaylistTypeAsString().- Returns:
- The HTTP Live Streaming (HLS) playlist type. When either "EVENT" or "VOD" is specified, a corresponding EXT-X-PLAYLIST-TYPE entry will be included in the media playlist.
- See Also:
PlaylistType
-
playlistWindowSeconds
public final Integer playlistWindowSeconds()
Time window (in seconds) contained in each parent manifest.- Returns:
- Time window (in seconds) contained in each parent manifest.
-
programDateTimeIntervalSeconds
public final Integer programDateTimeIntervalSeconds()
The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.- Returns:
- The interval (in seconds) between each EXT-X-PROGRAM-DATE-TIME tag inserted into manifests. Additionally, when an interval is specified ID3Timed Metadata messages will be generated every 5 seconds using the ingest time of the content. If the interval is not specified, or set to 0, then no EXT-X-PROGRAM-DATE-TIME tags will be inserted into manifests and no ID3Timed Metadata messages will be generated. Note that irrespective of this parameter, if any ID3 Timed Metadata is found in HTTP Live Streaming (HLS) input, it will be passed through to HLS output.
-
segmentDurationSeconds
public final Integer segmentDurationSeconds()
Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.- Returns:
- Duration (in seconds) of each fragment. Actual fragments will be rounded to the nearest multiple of the source fragment duration.
-
streamSelection
public final StreamSelection streamSelection()
Returns the value of the StreamSelection property for this object.- Returns:
- The value of the StreamSelection property for this object.
-
useAudioRenditionGroup
public final Boolean useAudioRenditionGroup()
When enabled, audio streams will be placed in rendition groups in the output.- Returns:
- When enabled, audio streams will be placed in rendition groups in the output.
-
toBuilder
public HlsPackage.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<HlsPackage.Builder,HlsPackage>
-
builder
public static HlsPackage.Builder builder()
-
serializableBuilderClass
public static Class<? extends HlsPackage.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-