Class CfnPlaybackConfigurationProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediatailor.CfnPlaybackConfigurationProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPlaybackConfigurationProps>
- Enclosing interface:
CfnPlaybackConfigurationProps
@Stability(Stable)
public static final class CfnPlaybackConfigurationProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPlaybackConfigurationProps>
A builder for
CfnPlaybackConfigurationProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadDecisionServerUrl
(String adDecisionServerUrl) Sets the value ofCfnPlaybackConfigurationProps.getAdDecisionServerUrl()
availSuppression
(IResolvable availSuppression) Sets the value ofCfnPlaybackConfigurationProps.getAvailSuppression()
availSuppression
(CfnPlaybackConfiguration.AvailSuppressionProperty availSuppression) Sets the value ofCfnPlaybackConfigurationProps.getAvailSuppression()
build()
Builds the configured instance.bumper
(IResolvable bumper) Sets the value ofCfnPlaybackConfigurationProps.getBumper()
Sets the value ofCfnPlaybackConfigurationProps.getBumper()
cdnConfiguration
(IResolvable cdnConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getCdnConfiguration()
cdnConfiguration
(CfnPlaybackConfiguration.CdnConfigurationProperty cdnConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getCdnConfiguration()
configurationAliases
(Map<String, ? extends Object> configurationAliases) Sets the value ofCfnPlaybackConfigurationProps.getConfigurationAliases()
configurationAliases
(IResolvable configurationAliases) Sets the value ofCfnPlaybackConfigurationProps.getConfigurationAliases()
dashConfiguration
(IResolvable dashConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getDashConfiguration()
dashConfiguration
(CfnPlaybackConfiguration.DashConfigurationProperty dashConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getDashConfiguration()
hlsConfiguration
(IResolvable hlsConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getHlsConfiguration()
hlsConfiguration
(CfnPlaybackConfiguration.HlsConfigurationProperty hlsConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getHlsConfiguration()
livePreRollConfiguration
(IResolvable livePreRollConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getLivePreRollConfiguration()
livePreRollConfiguration
(CfnPlaybackConfiguration.LivePreRollConfigurationProperty livePreRollConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getLivePreRollConfiguration()
manifestProcessingRules
(IResolvable manifestProcessingRules) Sets the value ofCfnPlaybackConfigurationProps.getManifestProcessingRules()
manifestProcessingRules
(CfnPlaybackConfiguration.ManifestProcessingRulesProperty manifestProcessingRules) Sets the value ofCfnPlaybackConfigurationProps.getManifestProcessingRules()
Sets the value ofCfnPlaybackConfigurationProps.getName()
personalizationThresholdSeconds
(Number personalizationThresholdSeconds) Sets the value ofCfnPlaybackConfigurationProps.getPersonalizationThresholdSeconds()
slateAdUrl
(String slateAdUrl) Sets the value ofCfnPlaybackConfigurationProps.getSlateAdUrl()
Sets the value ofCfnPlaybackConfigurationProps.getTags()
transcodeProfileName
(String transcodeProfileName) Sets the value ofCfnPlaybackConfigurationProps.getTranscodeProfileName()
videoContentSourceUrl
(String videoContentSourceUrl) Sets the value ofCfnPlaybackConfigurationProps.getVideoContentSourceUrl()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
adDecisionServerUrl
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder adDecisionServerUrl(String adDecisionServerUrl) Sets the value ofCfnPlaybackConfigurationProps.getAdDecisionServerUrl()
- Parameters:
adDecisionServerUrl
- The URL for the ad decision server (ADS). This parameter is required. This includes the specification of static parameters and placeholders for dynamic parameters. AWS Elemental MediaTailor substitutes player-specific and session-specific parameters as needed when calling the ADS. Alternately, for testing you can provide a static VAST URL. The maximum length is 25,000 characters.- Returns:
this
-
name
Sets the value ofCfnPlaybackConfigurationProps.getName()
- Parameters:
name
- The identifier for the playback configuration. This parameter is required.- Returns:
this
-
videoContentSourceUrl
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder videoContentSourceUrl(String videoContentSourceUrl) Sets the value ofCfnPlaybackConfigurationProps.getVideoContentSourceUrl()
- Parameters:
videoContentSourceUrl
- The URL prefix for the parent manifest for the stream, minus the asset ID. This parameter is required. The maximum length is 512 characters.- Returns:
this
-
availSuppression
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder availSuppression(IResolvable availSuppression) Sets the value ofCfnPlaybackConfigurationProps.getAvailSuppression()
- Parameters:
availSuppression
- The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression .- Returns:
this
-
availSuppression
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder availSuppression(CfnPlaybackConfiguration.AvailSuppressionProperty availSuppression) Sets the value ofCfnPlaybackConfigurationProps.getAvailSuppression()
- Parameters:
availSuppression
- The configuration for avail suppression, also known as ad suppression. For more information about ad suppression, see Ad Suppression .- Returns:
this
-
bumper
Sets the value ofCfnPlaybackConfigurationProps.getBumper()
- Parameters:
bumper
- The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers .- Returns:
this
-
bumper
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder bumper(CfnPlaybackConfiguration.BumperProperty bumper) Sets the value ofCfnPlaybackConfigurationProps.getBumper()
- Parameters:
bumper
- The configuration for bumpers. Bumpers are short audio or video clips that play at the start or before the end of an ad break. To learn more about bumpers, see Bumpers .- Returns:
this
-
cdnConfiguration
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder cdnConfiguration(IResolvable cdnConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getCdnConfiguration()
- Parameters:
cdnConfiguration
- The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.- Returns:
this
-
cdnConfiguration
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder cdnConfiguration(CfnPlaybackConfiguration.CdnConfigurationProperty cdnConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getCdnConfiguration()
- Parameters:
cdnConfiguration
- The configuration for using a content delivery network (CDN), like Amazon CloudFront, for content and ad segment management.- Returns:
this
-
configurationAliases
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder configurationAliases(IResolvable configurationAliases) Sets the value ofCfnPlaybackConfigurationProps.getConfigurationAliases()
- Parameters:
configurationAliases
- The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables .- Returns:
this
-
configurationAliases
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder configurationAliases(Map<String, ? extends Object> configurationAliases) Sets the value ofCfnPlaybackConfigurationProps.getConfigurationAliases()
- Parameters:
configurationAliases
- The player parameters and aliases used as dynamic variables during session initialization. For more information, see Domain Variables .- Returns:
this
-
dashConfiguration
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder dashConfiguration(IResolvable dashConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getDashConfiguration()
- Parameters:
dashConfiguration
- The configuration for a DASH source.- Returns:
this
-
dashConfiguration
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder dashConfiguration(CfnPlaybackConfiguration.DashConfigurationProperty dashConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getDashConfiguration()
- Parameters:
dashConfiguration
- The configuration for a DASH source.- Returns:
this
-
hlsConfiguration
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder hlsConfiguration(IResolvable hlsConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getHlsConfiguration()
- Parameters:
hlsConfiguration
- The configuration for HLS content.- Returns:
this
-
hlsConfiguration
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder hlsConfiguration(CfnPlaybackConfiguration.HlsConfigurationProperty hlsConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getHlsConfiguration()
- Parameters:
hlsConfiguration
- The configuration for HLS content.- Returns:
this
-
livePreRollConfiguration
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder livePreRollConfiguration(IResolvable livePreRollConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getLivePreRollConfiguration()
- Parameters:
livePreRollConfiguration
- The configuration for pre-roll ad insertion.- Returns:
this
-
livePreRollConfiguration
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder livePreRollConfiguration(CfnPlaybackConfiguration.LivePreRollConfigurationProperty livePreRollConfiguration) Sets the value ofCfnPlaybackConfigurationProps.getLivePreRollConfiguration()
- Parameters:
livePreRollConfiguration
- The configuration for pre-roll ad insertion.- Returns:
this
-
manifestProcessingRules
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder manifestProcessingRules(IResolvable manifestProcessingRules) Sets the value ofCfnPlaybackConfigurationProps.getManifestProcessingRules()
- Parameters:
manifestProcessingRules
- The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.- Returns:
this
-
manifestProcessingRules
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder manifestProcessingRules(CfnPlaybackConfiguration.ManifestProcessingRulesProperty manifestProcessingRules) Sets the value ofCfnPlaybackConfigurationProps.getManifestProcessingRules()
- Parameters:
manifestProcessingRules
- The configuration for manifest processing rules. Manifest processing rules enable customization of the personalized manifests created by MediaTailor.- Returns:
this
-
personalizationThresholdSeconds
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder personalizationThresholdSeconds(Number personalizationThresholdSeconds) Sets the value ofCfnPlaybackConfigurationProps.getPersonalizationThresholdSeconds()
- Parameters:
personalizationThresholdSeconds
- Defines the maximum duration of underfilled ad time (in seconds) allowed in an ad break. If the duration of underfilled ad time exceeds the personalization threshold, then the personalization of the ad break is abandoned and the underlying content is shown. This feature applies to ad replacement in live and VOD streams, rather than ad insertion, because it relies on an underlying content stream. For more information about ad break behavior, including ad replacement and insertion, see Ad Behavior in AWS Elemental MediaTailor .- Returns:
this
-
slateAdUrl
Sets the value ofCfnPlaybackConfigurationProps.getSlateAdUrl()
- Parameters:
slateAdUrl
- The URL for a video asset to transcode and use to fill in time that's not used by ads. AWS Elemental MediaTailor shows the slate to fill in gaps in media content. Configuring the slate is optional for non-VPAID playback configurations. For VPAID, the slate is required because MediaTailor provides it in the slots designated for dynamic ad content. The slate must be a high-quality asset that contains both audio and video.- Returns:
this
-
tags
Sets the value ofCfnPlaybackConfigurationProps.getTags()
- Parameters:
tags
- The tags to assign to the playback configuration. Tags are key-value pairs that you can associate with Amazon resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS Elemental MediaTailor Resources .- Returns:
this
-
transcodeProfileName
@Stability(Stable) public CfnPlaybackConfigurationProps.Builder transcodeProfileName(String transcodeProfileName) Sets the value ofCfnPlaybackConfigurationProps.getTranscodeProfileName()
- Parameters:
transcodeProfileName
- The name that is used to associate this playback configuration with a custom transcode profile. This overrides the dynamic transcoding defaults of MediaTailor. Use this only if you have already set up custom profiles with the help of AWS Support.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnPlaybackConfigurationProps>
- Returns:
- a new instance of
CfnPlaybackConfigurationProps
- Throws:
NullPointerException
- if any required attribute was not provided
-