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