Class CfnChannel.HlsAkamaiSettingsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.CfnChannel.HlsAkamaiSettingsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannel.HlsAkamaiSettingsProperty>
- Enclosing interface:
CfnChannel.HlsAkamaiSettingsProperty
@Stability(Stable)
public static final class CfnChannel.HlsAkamaiSettingsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannel.HlsAkamaiSettingsProperty>
A builder for
CfnChannel.HlsAkamaiSettingsProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.connectionRetryInterval
(Number connectionRetryInterval) Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.getConnectionRetryInterval()
filecacheDuration
(Number filecacheDuration) Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.getFilecacheDuration()
httpTransferMode
(String httpTransferMode) Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.getHttpTransferMode()
numRetries
(Number numRetries) Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.getNumRetries()
restartDelay
(Number restartDelay) Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.getRestartDelay()
Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.getSalt()
Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.getToken()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionRetryInterval
@Stability(Stable) public CfnChannel.HlsAkamaiSettingsProperty.Builder connectionRetryInterval(Number connectionRetryInterval) Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.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.HlsAkamaiSettingsProperty.Builder filecacheDuration(Number filecacheDuration) Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.getFilecacheDuration()
- Parameters:
filecacheDuration
- The size, in seconds, of the file cache for streaming outputs.- Returns:
this
-
httpTransferMode
@Stability(Stable) public CfnChannel.HlsAkamaiSettingsProperty.Builder httpTransferMode(String httpTransferMode) Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.getHttpTransferMode()
- Parameters:
httpTransferMode
- Specifies whether to use chunked transfer encoding to Akamai. To enable this feature, contact Akamai.- Returns:
this
-
numRetries
@Stability(Stable) public CfnChannel.HlsAkamaiSettingsProperty.Builder numRetries(Number numRetries) Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.getNumRetries()
- Parameters:
numRetries
- The number of retry attempts that will be made before the channel is put into an error state.- Returns:
this
-
restartDelay
@Stability(Stable) public CfnChannel.HlsAkamaiSettingsProperty.Builder restartDelay(Number restartDelay) Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.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
-
salt
Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.getSalt()
- Parameters:
salt
- The salt for authenticated Akamai.- Returns:
this
-
token
Sets the value ofCfnChannel.HlsAkamaiSettingsProperty.getToken()
- Parameters:
token
- The token parameter for authenticated Akamai. If this is not specified, gda is used.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannel.HlsAkamaiSettingsProperty>
- Returns:
- a new instance of
CfnChannel.HlsAkamaiSettingsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-