Class CfnChannel.MsSmoothGroupSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.MsSmoothGroupSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.MsSmoothGroupSettingsProperty>
- Enclosing interface:
CfnChannel.MsSmoothGroupSettingsProperty
@Stability(Stable)
public static final class CfnChannel.MsSmoothGroupSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.MsSmoothGroupSettingsProperty>
A builder for
CfnChannel.MsSmoothGroupSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionacquisitionPointId
(String acquisitionPointId) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getAcquisitionPointId()
audioOnlyTimecodeControl
(String audioOnlyTimecodeControl) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getAudioOnlyTimecodeControl()
build()
Builds the configured instance.certificateMode
(String certificateMode) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getCertificateMode()
connectionRetryInterval
(Number connectionRetryInterval) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getConnectionRetryInterval()
destination
(IResolvable destination) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getDestination()
destination
(CfnChannel.OutputLocationRefProperty destination) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getDestination()
Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getEventId()
eventIdMode
(String eventIdMode) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getEventIdMode()
eventStopBehavior
(String eventStopBehavior) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getEventStopBehavior()
filecacheDuration
(Number filecacheDuration) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getFilecacheDuration()
fragmentLength
(Number fragmentLength) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getFragmentLength()
inputLossAction
(String inputLossAction) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getInputLossAction()
numRetries
(Number numRetries) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getNumRetries()
restartDelay
(Number restartDelay) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getRestartDelay()
segmentationMode
(String segmentationMode) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getSegmentationMode()
sendDelayMs
(Number sendDelayMs) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getSendDelayMs()
sparseTrackType
(String sparseTrackType) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getSparseTrackType()
streamManifestBehavior
(String streamManifestBehavior) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getStreamManifestBehavior()
timestampOffset
(String timestampOffset) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getTimestampOffset()
timestampOffsetMode
(String timestampOffsetMode) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getTimestampOffsetMode()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acquisitionPointId
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder acquisitionPointId(String acquisitionPointId) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getAcquisitionPointId()
- Parameters:
acquisitionPointId
- The value of the Acquisition Point Identity element that is used in each message placed in the sparse track. Enabled only if sparseTrackType is not "none."- Returns:
this
-
audioOnlyTimecodeControl
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder audioOnlyTimecodeControl(String audioOnlyTimecodeControl) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getAudioOnlyTimecodeControl()
- Parameters:
audioOnlyTimecodeControl
- If set to passthrough for an audio-only Microsoft Smooth output, the fragment absolute time is set to the current timecode. This option does not write timecodes to the audio elementary stream.- Returns:
this
-
certificateMode
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder certificateMode(String certificateMode) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getCertificateMode()
- Parameters:
certificateMode
- If set to verifyAuthenticity, verifies the HTTPS certificate chain to a trusted certificate authority (CA). This causes HTTPS outputs to self-signed certificates to fail.- Returns:
this
-
connectionRetryInterval
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder connectionRetryInterval(Number connectionRetryInterval) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getConnectionRetryInterval()
- Parameters:
connectionRetryInterval
- The number of seconds to wait before retrying the connection to the IIS server if the connection is lost. Content is cached during this time, and the cache is delivered to the IIS server after the connection is re-established.- Returns:
this
-
destination
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder destination(IResolvable destination) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getDestination()
- Parameters:
destination
- The Smooth Streaming publish point on an IIS server. MediaLive acts as a "Push" encoder to IIS.- Returns:
this
-
destination
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder destination(CfnChannel.OutputLocationRefProperty destination) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getDestination()
- Parameters:
destination
- The Smooth Streaming publish point on an IIS server. MediaLive acts as a "Push" encoder to IIS.- Returns:
this
-
eventId
Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getEventId()
- Parameters:
eventId
- The Microsoft Smooth channel ID that is sent to the IIS server. Specify the ID only if eventIdMode is set to useConfigured.- Returns:
this
-
eventIdMode
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder eventIdMode(String eventIdMode) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getEventIdMode()
- Parameters:
eventIdMode
- Specifies whether to send a channel ID to the IIS server. If no channel ID is sent and the same channel is used without changing the publishing point, clients might see cached video from the previous run. Options: - "useConfigured" - use the value provided in eventId - "useTimestamp" - generate and send a channel ID based on the current timestamp - "noEventId" - do not send a channel ID to the IIS server.- Returns:
this
-
eventStopBehavior
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder eventStopBehavior(String eventStopBehavior) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getEventStopBehavior()
- Parameters:
eventStopBehavior
- When set to sendEos, sends an EOS signal to an IIS server when stopping the channel.- Returns:
this
-
filecacheDuration
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder filecacheDuration(Number filecacheDuration) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getFilecacheDuration()
- Parameters:
filecacheDuration
- The size, in seconds, of the file cache for streaming outputs.- Returns:
this
-
fragmentLength
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder fragmentLength(Number fragmentLength) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getFragmentLength()
- Parameters:
fragmentLength
- The length, in seconds, of mp4 fragments to generate. The fragment length must be compatible with GOP size and frame rate.- Returns:
this
-
inputLossAction
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder inputLossAction(String inputLossAction) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getInputLossAction()
- Parameters:
inputLossAction
- A parameter that controls output group behavior on an input loss.- Returns:
this
-
numRetries
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder numRetries(Number numRetries) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getNumRetries()
- Parameters:
numRetries
- The number of retry attempts.- Returns:
this
-
restartDelay
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder restartDelay(Number restartDelay) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getRestartDelay()
- Parameters:
restartDelay
- The number of seconds before initiating a restart due to output failure, due to exhausting the numRetries on one segment, or exceeding filecacheDuration.- Returns:
this
-
segmentationMode
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder segmentationMode(String segmentationMode) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getSegmentationMode()
- Parameters:
segmentationMode
- useInputSegmentation has been deprecated. The configured segment size is always used.- Returns:
this
-
sendDelayMs
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder sendDelayMs(Number sendDelayMs) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getSendDelayMs()
- Parameters:
sendDelayMs
- The number of milliseconds to delay the output from the second pipeline.- Returns:
this
-
sparseTrackType
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder sparseTrackType(String sparseTrackType) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getSparseTrackType()
- Parameters:
sparseTrackType
- If set to scte35, uses incoming SCTE-35 messages to generate a sparse track in this group of Microsoft Smooth outputs.- Returns:
this
-
streamManifestBehavior
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder streamManifestBehavior(String streamManifestBehavior) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getStreamManifestBehavior()
- Parameters:
streamManifestBehavior
- When set to send, sends a stream manifest so that the publishing point doesn't start until all streams start.- Returns:
this
-
timestampOffset
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder timestampOffset(String timestampOffset) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getTimestampOffset()
- Parameters:
timestampOffset
- The timestamp offset for the channel. Used only if timestampOffsetMode is set to useConfiguredOffset.- Returns:
this
-
timestampOffsetMode
@Stability(Stable) public CfnChannel.MsSmoothGroupSettingsProperty.Builder timestampOffsetMode(String timestampOffsetMode) Sets the value ofCfnChannel.MsSmoothGroupSettingsProperty.getTimestampOffsetMode()
- Parameters:
timestampOffsetMode
- The type of timestamp date offset to use.- useEventStartDate: Use the date the channel was started as the offset - useConfiguredOffset: Use an explicitly configured date as the offset.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.MsSmoothGroupSettingsProperty>
- Returns:
- a new instance of
CfnChannel.MsSmoothGroupSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-