Class CfnChannel.HlsMediaStoreSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.HlsMediaStoreSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.HlsMediaStoreSettingsProperty>
- Enclosing interface:
CfnChannel.HlsMediaStoreSettingsProperty
@Stability(Stable)
public static final class CfnChannel.HlsMediaStoreSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.HlsMediaStoreSettingsProperty>
A builder for
CfnChannel.HlsMediaStoreSettingsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.connectionRetryInterval(Number connectionRetryInterval) Sets the value ofCfnChannel.HlsMediaStoreSettingsProperty.getConnectionRetryInterval()filecacheDuration(Number filecacheDuration) Sets the value ofCfnChannel.HlsMediaStoreSettingsProperty.getFilecacheDuration()mediaStoreStorageClass(String mediaStoreStorageClass) Sets the value ofCfnChannel.HlsMediaStoreSettingsProperty.getMediaStoreStorageClass()numRetries(Number numRetries) Sets the value ofCfnChannel.HlsMediaStoreSettingsProperty.getNumRetries()restartDelay(Number restartDelay) Sets the value ofCfnChannel.HlsMediaStoreSettingsProperty.getRestartDelay()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionRetryInterval
@Stability(Stable) public CfnChannel.HlsMediaStoreSettingsProperty.Builder connectionRetryInterval(Number connectionRetryInterval) Sets the value ofCfnChannel.HlsMediaStoreSettingsProperty.getConnectionRetryInterval()- Parameters:
connectionRetryInterval- The number of seconds to wait before retrying a connection to the CDN if the connection is lost.- Returns:
this
-
filecacheDuration
@Stability(Stable) public CfnChannel.HlsMediaStoreSettingsProperty.Builder filecacheDuration(Number filecacheDuration) Sets the value ofCfnChannel.HlsMediaStoreSettingsProperty.getFilecacheDuration()- Parameters:
filecacheDuration- The size, in seconds, of the file cache for streaming outputs.- Returns:
this
-
mediaStoreStorageClass
@Stability(Stable) public CfnChannel.HlsMediaStoreSettingsProperty.Builder mediaStoreStorageClass(String mediaStoreStorageClass) Sets the value ofCfnChannel.HlsMediaStoreSettingsProperty.getMediaStoreStorageClass()- Parameters:
mediaStoreStorageClass- When set to temporal, output files are stored in non-persistent memory for faster reading and writing.- Returns:
this
-
numRetries
@Stability(Stable) public CfnChannel.HlsMediaStoreSettingsProperty.Builder numRetries(Number numRetries) Sets the value ofCfnChannel.HlsMediaStoreSettingsProperty.getNumRetries()- Parameters:
numRetries- The number of retry attempts that are made before the channel is put into an error state.- Returns:
this
-
restartDelay
@Stability(Stable) public CfnChannel.HlsMediaStoreSettingsProperty.Builder restartDelay(Number restartDelay) Sets the value ofCfnChannel.HlsMediaStoreSettingsProperty.getRestartDelay()- Parameters:
restartDelay- If a streaming output fails, the number of seconds to wait until a restart is initiated. A value of 0 means never restart.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannel.HlsMediaStoreSettingsProperty>- Returns:
- a new instance of
CfnChannel.HlsMediaStoreSettingsProperty - Throws:
NullPointerException- if any required attribute was not provided
-