Class CfnPrefetchScheduleMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.mediatailor.CfnPrefetchScheduleMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnPrefetchScheduleMixinProps>
- Enclosing interface:
CfnPrefetchScheduleMixinProps
@Stability(Stable)
public static final class CfnPrefetchScheduleMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnPrefetchScheduleMixinProps>
A builder for
CfnPrefetchScheduleMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofCfnPrefetchScheduleMixinProps.getConsumption()consumption(IResolvable consumption) Sets the value ofCfnPrefetchScheduleMixinProps.getConsumption()Sets the value ofCfnPrefetchScheduleMixinProps.getName()playbackConfigurationName(String playbackConfigurationName) Sets the value ofCfnPrefetchScheduleMixinProps.getPlaybackConfigurationName()recurringPrefetchConfiguration(CfnPrefetchSchedulePropsMixin.RecurringPrefetchConfigurationProperty recurringPrefetchConfiguration) Sets the value ofCfnPrefetchScheduleMixinProps.getRecurringPrefetchConfiguration()recurringPrefetchConfiguration(IResolvable recurringPrefetchConfiguration) Sets the value ofCfnPrefetchScheduleMixinProps.getRecurringPrefetchConfiguration()Sets the value ofCfnPrefetchScheduleMixinProps.getRetrieval()retrieval(IResolvable retrieval) Sets the value ofCfnPrefetchScheduleMixinProps.getRetrieval()scheduleType(String scheduleType) Sets the value ofCfnPrefetchScheduleMixinProps.getScheduleType()Sets the value ofCfnPrefetchScheduleMixinProps.getStreamId()Sets the value ofCfnPrefetchScheduleMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
consumption
@Stability(Stable) public CfnPrefetchScheduleMixinProps.Builder consumption(IResolvable consumption) Sets the value ofCfnPrefetchScheduleMixinProps.getConsumption()- Parameters:
consumption- the value to be set.- Returns:
this
-
consumption
@Stability(Stable) public CfnPrefetchScheduleMixinProps.Builder consumption(CfnPrefetchSchedulePropsMixin.PrefetchConsumptionProperty consumption) Sets the value ofCfnPrefetchScheduleMixinProps.getConsumption()- Parameters:
consumption- the value to be set.- Returns:
this
-
name
Sets the value ofCfnPrefetchScheduleMixinProps.getName()- Parameters:
name- The name to assign to the prefetch schedule.- Returns:
this
-
playbackConfigurationName
@Stability(Stable) public CfnPrefetchScheduleMixinProps.Builder playbackConfigurationName(String playbackConfigurationName) Sets the value ofCfnPrefetchScheduleMixinProps.getPlaybackConfigurationName()- Parameters:
playbackConfigurationName- The name of the playback configuration.- Returns:
this
-
recurringPrefetchConfiguration
@Stability(Stable) public CfnPrefetchScheduleMixinProps.Builder recurringPrefetchConfiguration(IResolvable recurringPrefetchConfiguration) Sets the value ofCfnPrefetchScheduleMixinProps.getRecurringPrefetchConfiguration()- Parameters:
recurringPrefetchConfiguration- the value to be set.- Returns:
this
-
recurringPrefetchConfiguration
@Stability(Stable) public CfnPrefetchScheduleMixinProps.Builder recurringPrefetchConfiguration(CfnPrefetchSchedulePropsMixin.RecurringPrefetchConfigurationProperty recurringPrefetchConfiguration) Sets the value ofCfnPrefetchScheduleMixinProps.getRecurringPrefetchConfiguration()- Parameters:
recurringPrefetchConfiguration- the value to be set.- Returns:
this
-
retrieval
Sets the value ofCfnPrefetchScheduleMixinProps.getRetrieval()- Parameters:
retrieval- the value to be set.- Returns:
this
-
retrieval
@Stability(Stable) public CfnPrefetchScheduleMixinProps.Builder retrieval(CfnPrefetchSchedulePropsMixin.PrefetchRetrievalProperty retrieval) Sets the value ofCfnPrefetchScheduleMixinProps.getRetrieval()- Parameters:
retrieval- the value to be set.- Returns:
this
-
scheduleType
Sets the value ofCfnPrefetchScheduleMixinProps.getScheduleType()- Parameters:
scheduleType- The frequency that MediaTailor creates prefetch schedules.- Returns:
this
-
streamId
Sets the value ofCfnPrefetchScheduleMixinProps.getStreamId()- Parameters:
streamId- An optional stream identifier that MediaTailor uses to prefetch ads for multiple streams that use the same playback configuration.- Returns:
this
-
tags
Sets the value ofCfnPrefetchScheduleMixinProps.getTags()- Parameters:
tags- The tags assigned to the prefetch schedule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnPrefetchScheduleMixinProps>- Returns:
- a new instance of
CfnPrefetchScheduleMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-