Class ChannelProps.Builder
java.lang.Object
software.amazon.awscdk.services.ivs.alpha.ChannelProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ChannelProps>
- Enclosing interface:
ChannelProps
@Stability(Experimental)
public static final class ChannelProps.Builder
extends Object
implements software.amazon.jsii.Builder<ChannelProps>
A builder for
ChannelProps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorized
(Boolean authorized) Sets the value ofChannelProps.getAuthorized()
build()
Builds the configured instance.channelName
(String channelName) Sets the value ofChannelProps.getChannelName()
containerFormat
(ContainerFormat containerFormat) Sets the value ofChannelProps.getContainerFormat()
insecureIngest
(Boolean insecureIngest) Sets the value ofChannelProps.getInsecureIngest()
latencyMode
(LatencyMode latencyMode) Sets the value ofChannelProps.getLatencyMode()
multitrackInputConfiguration
(MultitrackInputConfiguration multitrackInputConfiguration) Sets the value ofChannelProps.getMultitrackInputConfiguration()
Sets the value ofChannelProps.getPreset()
recordingConfiguration
(IRecordingConfiguration recordingConfiguration) Sets the value ofChannelProps.getRecordingConfiguration()
type
(ChannelType type) Sets the value ofChannelProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorized
Sets the value ofChannelProps.getAuthorized()
- Parameters:
authorized
- Whether the channel is authorized. If you wish to make an authorized channel, you will need to ensure that a PlaybackKeyPair has been uploaded to your account as this is used to validate the signed JWT that is required for authorization- Returns:
this
-
channelName
Sets the value ofChannelProps.getChannelName()
- Parameters:
channelName
- A name for the channel.- Returns:
this
-
containerFormat
@Stability(Experimental) public ChannelProps.Builder containerFormat(ContainerFormat containerFormat) Sets the value ofChannelProps.getContainerFormat()
- Parameters:
containerFormat
- Indicates which content-packaging format is used (MPEG-TS or fMP4). IfmultitrackInputConfiguration
is specified, only fMP4 can be used. Otherwise,containerFormat
may be set toContainerFormat.TS
orContainerFormat.FRAGMENTED_MP4
.- Returns:
this
-
insecureIngest
Sets the value ofChannelProps.getInsecureIngest()
- Parameters:
insecureIngest
- Whether the channel allows insecure RTMP ingest.- Returns:
this
-
latencyMode
Sets the value ofChannelProps.getLatencyMode()
- Parameters:
latencyMode
- Channel latency mode.- Returns:
this
-
multitrackInputConfiguration
@Stability(Experimental) public ChannelProps.Builder multitrackInputConfiguration(MultitrackInputConfiguration multitrackInputConfiguration) Sets the value ofChannelProps.getMultitrackInputConfiguration()
- Parameters:
multitrackInputConfiguration
- Object specifying multitrack input configuration. You must specifymultitrackInputConfiguration
if you want to use MultiTrack Video.multitrackInputConfiguration
is only supported forChannelType.STANDARD
.- Returns:
this
-
preset
Sets the value ofChannelProps.getPreset()
- Parameters:
preset
- An optional transcode preset for the channel. Can be used for ADVANCED_HD and ADVANCED_SD channel types. When LOW or STANDARD is used, the preset will be overridden and set to none regardless of the value provided.- Returns:
this
-
recordingConfiguration
@Stability(Experimental) public ChannelProps.Builder recordingConfiguration(IRecordingConfiguration recordingConfiguration) Sets the value ofChannelProps.getRecordingConfiguration()
- Parameters:
recordingConfiguration
- A recording configuration for the channel.- Returns:
this
-
type
Sets the value ofChannelProps.getType()
- Parameters:
type
- The channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream will disconnect immediately- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ChannelProps>
- Returns:
- a new instance of
ChannelProps
- Throws:
NullPointerException
- if any required attribute was not provided
-