Class CfnProgram.TransitionProperty.Builder
java.lang.Object
software.amazon.awscdk.services.mediatailor.CfnProgram.TransitionProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProgram.TransitionProperty>
- Enclosing interface:
CfnProgram.TransitionProperty
@Stability(Stable)
public static final class CfnProgram.TransitionProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProgram.TransitionProperty>
A builder for
CfnProgram.TransitionProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.durationMillis(Number durationMillis) Sets the value ofCfnProgram.TransitionProperty.getDurationMillis()relativePosition(String relativePosition) Sets the value ofCfnProgram.TransitionProperty.getRelativePosition()relativeProgram(String relativeProgram) Sets the value ofCfnProgram.TransitionProperty.getRelativeProgram()scheduledStartTimeMillis(Number scheduledStartTimeMillis) Sets the value ofCfnProgram.TransitionProperty.getScheduledStartTimeMillis()Sets the value ofCfnProgram.TransitionProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
relativePosition
@Stability(Stable) public CfnProgram.TransitionProperty.Builder relativePosition(String relativePosition) Sets the value ofCfnProgram.TransitionProperty.getRelativePosition()- Parameters:
relativePosition- The position where this program will be inserted relative to the RelativePosition. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnProgram.TransitionProperty.getType()- Parameters:
type- Defines when the program plays in the schedule. This parameter is required. You can set the value to ABSOLUTE or RELATIVE.- Returns:
this
-
durationMillis
@Stability(Stable) public CfnProgram.TransitionProperty.Builder durationMillis(Number durationMillis) Sets the value ofCfnProgram.TransitionProperty.getDurationMillis()- Parameters:
durationMillis- The duration of the live program in seconds.- Returns:
this
-
relativeProgram
@Stability(Stable) public CfnProgram.TransitionProperty.Builder relativeProgram(String relativeProgram) Sets the value ofCfnProgram.TransitionProperty.getRelativeProgram()- Parameters:
relativeProgram- The name of the program that this program will be inserted next to.- Returns:
this
-
scheduledStartTimeMillis
@Stability(Stable) public CfnProgram.TransitionProperty.Builder scheduledStartTimeMillis(Number scheduledStartTimeMillis) Sets the value ofCfnProgram.TransitionProperty.getScheduledStartTimeMillis()- Parameters:
scheduledStartTimeMillis- The date and time that the program is scheduled to start, in epoch milliseconds.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnProgram.TransitionProperty>- Returns:
- a new instance of
CfnProgram.TransitionProperty - Throws:
NullPointerException- if any required attribute was not provided
-