Class HlsAkamaiCdnProps.Builder
java.lang.Object
software.amazon.awscdk.services.medialive.alpha.HlsAkamaiCdnProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<HlsAkamaiCdnProps>
- Enclosing interface:
HlsAkamaiCdnProps
@Stability(Experimental)
public static final class HlsAkamaiCdnProps.Builder
extends Object
implements software.amazon.jsii.Builder<HlsAkamaiCdnProps>
A builder for
HlsAkamaiCdnProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.connectionRetryInterval(Number connectionRetryInterval) Sets the value ofHlsAkamaiCdnProps.getConnectionRetryInterval()filecacheDuration(Duration filecacheDuration) Sets the value ofHlsAkamaiCdnProps.getFilecacheDuration()httpTransferMode(HttpTransferMode httpTransferMode) Sets the value ofHlsAkamaiCdnProps.getHttpTransferMode()numRetries(Number numRetries) Sets the value ofHlsAkamaiCdnProps.getNumRetries()restartDelay(Number restartDelay) Sets the value ofHlsAkamaiCdnProps.getRestartDelay()Sets the value ofHlsAkamaiCdnProps.getSalt()Sets the value ofHlsAkamaiCdnProps.getToken()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
connectionRetryInterval
@Stability(Experimental) public HlsAkamaiCdnProps.Builder connectionRetryInterval(Number connectionRetryInterval) Sets the value ofHlsAkamaiCdnProps.getConnectionRetryInterval()- Parameters:
connectionRetryInterval- The number of seconds to wait before retrying a connection to the CDN.- Returns:
this
-
filecacheDuration
@Stability(Experimental) public HlsAkamaiCdnProps.Builder filecacheDuration(Duration filecacheDuration) Sets the value ofHlsAkamaiCdnProps.getFilecacheDuration()- Parameters:
filecacheDuration- The size of the file cache for streaming outputs.- Returns:
this
-
httpTransferMode
@Stability(Experimental) public HlsAkamaiCdnProps.Builder httpTransferMode(HttpTransferMode httpTransferMode) Sets the value ofHlsAkamaiCdnProps.getHttpTransferMode()- Parameters:
httpTransferMode- Specifies whether to use chunked transfer encoding.- Returns:
this
-
numRetries
Sets the value ofHlsAkamaiCdnProps.getNumRetries()- Parameters:
numRetries- The number of retry attempts.- Returns:
this
-
restartDelay
Sets the value ofHlsAkamaiCdnProps.getRestartDelay()- Parameters:
restartDelay- The number of seconds to wait before restarting after a failure.- Returns:
this
-
salt
Sets the value ofHlsAkamaiCdnProps.getSalt()- Parameters:
salt- The salt for Akamai authentication.- Returns:
this
-
token
Sets the value ofHlsAkamaiCdnProps.getToken()- Parameters:
token- The token for Akamai authentication.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<HlsAkamaiCdnProps>- Returns:
- a new instance of
HlsAkamaiCdnProps - Throws:
NullPointerException- if any required attribute was not provided
-