Class CfnChannelProps.Builder
java.lang.Object
software.amazon.awscdk.services.mediatailor.CfnChannelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnChannelProps>
- Enclosing interface:
CfnChannelProps
@Stability(Stable)
public static final class CfnChannelProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnChannelProps>
A builder for
CfnChannelProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnChannelProps.getAudiences()
build()
Builds the configured instance.channelName
(String channelName) Sets the value ofCfnChannelProps.getChannelName()
fillerSlate
(IResolvable fillerSlate) Sets the value ofCfnChannelProps.getFillerSlate()
fillerSlate
(CfnChannel.SlateSourceProperty fillerSlate) Sets the value ofCfnChannelProps.getFillerSlate()
logConfiguration
(IResolvable logConfiguration) Sets the value ofCfnChannelProps.getLogConfiguration()
logConfiguration
(CfnChannel.LogConfigurationForChannelProperty logConfiguration) Sets the value ofCfnChannelProps.getLogConfiguration()
Sets the value ofCfnChannelProps.getOutputs()
outputs
(IResolvable outputs) Sets the value ofCfnChannelProps.getOutputs()
playbackMode
(String playbackMode) Sets the value ofCfnChannelProps.getPlaybackMode()
Sets the value ofCfnChannelProps.getTags()
Sets the value ofCfnChannelProps.getTier()
timeShiftConfiguration
(IResolvable timeShiftConfiguration) Sets the value ofCfnChannelProps.getTimeShiftConfiguration()
timeShiftConfiguration
(CfnChannel.TimeShiftConfigurationProperty timeShiftConfiguration) Sets the value ofCfnChannelProps.getTimeShiftConfiguration()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
channelName
Sets the value ofCfnChannelProps.getChannelName()
- Parameters:
channelName
- The name of the channel. This parameter is required.- Returns:
this
-
outputs
Sets the value ofCfnChannelProps.getOutputs()
- Parameters:
outputs
- The channel's output properties. This parameter is required.- Returns:
this
-
outputs
Sets the value ofCfnChannelProps.getOutputs()
- Parameters:
outputs
- The channel's output properties. This parameter is required.- Returns:
this
-
playbackMode
Sets the value ofCfnChannelProps.getPlaybackMode()
- Parameters:
playbackMode
- The type of playback mode for this channel. This parameter is required.LINEAR
- Programs play back-to-back only once.LOOP
- Programs play back-to-back in an endless loop. When the last program in the schedule plays, playback loops back to the first program in the schedule.- Returns:
this
-
audiences
Sets the value ofCfnChannelProps.getAudiences()
- Parameters:
audiences
- The list of audiences defined in channel.- Returns:
this
-
fillerSlate
Sets the value ofCfnChannelProps.getFillerSlate()
- Parameters:
fillerSlate
- The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses theLINEAR
PlaybackMode
. MediaTailor doesn't support filler slate for channels using theLOOP
PlaybackMode
.- Returns:
this
-
fillerSlate
@Stability(Stable) public CfnChannelProps.Builder fillerSlate(CfnChannel.SlateSourceProperty fillerSlate) Sets the value ofCfnChannelProps.getFillerSlate()
- Parameters:
fillerSlate
- The slate used to fill gaps between programs in the schedule. You must configure filler slate if your channel uses theLINEAR
PlaybackMode
. MediaTailor doesn't support filler slate for channels using theLOOP
PlaybackMode
.- Returns:
this
-
logConfiguration
Sets the value ofCfnChannelProps.getLogConfiguration()
- Parameters:
logConfiguration
- The log configuration.- Returns:
this
-
logConfiguration
@Stability(Stable) public CfnChannelProps.Builder logConfiguration(CfnChannel.LogConfigurationForChannelProperty logConfiguration) Sets the value ofCfnChannelProps.getLogConfiguration()
- Parameters:
logConfiguration
- The log configuration.- Returns:
this
-
tags
Sets the value ofCfnChannelProps.getTags()
- Parameters:
tags
- The tags to assign to the channel. 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
-
tier
Sets the value ofCfnChannelProps.getTier()
- Parameters:
tier
- The tier for this channel. STANDARD tier channels can contain live programs.- Returns:
this
-
timeShiftConfiguration
@Stability(Stable) public CfnChannelProps.Builder timeShiftConfiguration(IResolvable timeShiftConfiguration) Sets the value ofCfnChannelProps.getTimeShiftConfiguration()
- Parameters:
timeShiftConfiguration
- The configuration for time-shifted viewing.- Returns:
this
-
timeShiftConfiguration
@Stability(Stable) public CfnChannelProps.Builder timeShiftConfiguration(CfnChannel.TimeShiftConfigurationProperty timeShiftConfiguration) Sets the value ofCfnChannelProps.getTimeShiftConfiguration()
- Parameters:
timeShiftConfiguration
- The configuration for time-shifted viewing.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnChannelProps>
- Returns:
- a new instance of
CfnChannelProps
- Throws:
NullPointerException
- if any required attribute was not provided
-