Class CfnChannelProps.Builder
java.lang.Object
software.amazon.awscdk.services.ivs.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 TypeMethodDescriptionauthorized(Boolean authorized) Sets the value ofCfnChannelProps.getAuthorized()authorized(IResolvable authorized) Sets the value ofCfnChannelProps.getAuthorized()build()Builds the configured instance.containerFormat(String containerFormat) Sets the value ofCfnChannelProps.getContainerFormat()insecureIngest(Boolean insecureIngest) Sets the value ofCfnChannelProps.getInsecureIngest()insecureIngest(IResolvable insecureIngest) Sets the value ofCfnChannelProps.getInsecureIngest()latencyMode(String latencyMode) Sets the value ofCfnChannelProps.getLatencyMode()multitrackInputConfiguration(IResolvable multitrackInputConfiguration) Sets the value ofCfnChannelProps.getMultitrackInputConfiguration()multitrackInputConfiguration(CfnChannel.MultitrackInputConfigurationProperty multitrackInputConfiguration) Sets the value ofCfnChannelProps.getMultitrackInputConfiguration()Sets the value ofCfnChannelProps.getName()Sets the value ofCfnChannelProps.getPreset()recordingConfigurationArn(String recordingConfigurationArn) Sets the value ofCfnChannelProps.getRecordingConfigurationArn()recordingConfigurationArn(IRecordingConfigurationRef recordingConfigurationArn) Sets the value ofCfnChannelProps.getRecordingConfigurationArn()Sets the value ofCfnChannelProps.getTags()Sets the value ofCfnChannelProps.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorized
Sets the value ofCfnChannelProps.getAuthorized()- Parameters:
authorized- Whether the channel is authorized. Default :false- Returns:
this
-
authorized
Sets the value ofCfnChannelProps.getAuthorized()- Parameters:
authorized- Whether the channel is authorized. Default :false- Returns:
this
-
containerFormat
Sets the value ofCfnChannelProps.getContainerFormat()- Parameters:
containerFormat- Indicates which content-packaging format is used (MPEG-TS or fMP4). IfmultitrackInputConfigurationis specified andenabledistrue, thencontainerFormatis required and must be set toFRAGMENTED_MP4. Otherwise,containerFormatmay be set toTSorFRAGMENTED_MP4. Default:TS.- Returns:
this
-
insecureIngest
Sets the value ofCfnChannelProps.getInsecureIngest()- Parameters:
insecureIngest- Whether the channel allows insecure RTMP ingest. Default :false- Returns:
this
-
insecureIngest
Sets the value ofCfnChannelProps.getInsecureIngest()- Parameters:
insecureIngest- Whether the channel allows insecure RTMP ingest. Default :false- Returns:
this
-
latencyMode
Sets the value ofCfnChannelProps.getLatencyMode()- Parameters:
latencyMode- Channel latency mode. Valid values:.NORMAL: Use NORMAL to broadcast and deliver live video up to Full HD.LOW: Use LOW for near real-time interactions with viewers.
In the console,
LOWandNORMALcorrespond toUltra-lowandStandard, respectively.Default :
LOW- Returns:
this
-
multitrackInputConfiguration
@Stability(Stable) public CfnChannelProps.Builder multitrackInputConfiguration(IResolvable multitrackInputConfiguration) Sets the value ofCfnChannelProps.getMultitrackInputConfiguration()- Parameters:
multitrackInputConfiguration- Object specifying multitrack input configuration. Default: no multitrack input configuration is specified.- Returns:
this
-
multitrackInputConfiguration
@Stability(Stable) public CfnChannelProps.Builder multitrackInputConfiguration(CfnChannel.MultitrackInputConfigurationProperty multitrackInputConfiguration) Sets the value ofCfnChannelProps.getMultitrackInputConfiguration()- Parameters:
multitrackInputConfiguration- Object specifying multitrack input configuration. Default: no multitrack input configuration is specified.- Returns:
this
-
name
Sets the value ofCfnChannelProps.getName()- Parameters:
name- Channel name.- Returns:
this
-
preset
Sets the value ofCfnChannelProps.getPreset()- Parameters:
preset- An optional transcode preset for the channel. This is selectable only forADVANCED_HDandADVANCED_SDchannel types. For those channel types, the default preset isHIGHER_BANDWIDTH_DELIVERY. For other channel types (BASICandSTANDARD),presetis the empty string ("").- Returns:
this
-
recordingConfigurationArn
@Stability(Stable) public CfnChannelProps.Builder recordingConfigurationArn(String recordingConfigurationArn) Sets the value ofCfnChannelProps.getRecordingConfigurationArn()- Parameters:
recordingConfigurationArn- The ARN of a RecordingConfiguration resource. An empty string indicates that recording is disabled for the channel. A RecordingConfiguration ARN indicates that recording is enabled using the specified recording configuration. See the RecordingConfiguration resource for more information and an example.Default : "" (empty string, recording is disabled)
- Returns:
this
-
recordingConfigurationArn
@Stability(Stable) public CfnChannelProps.Builder recordingConfigurationArn(IRecordingConfigurationRef recordingConfigurationArn) Sets the value ofCfnChannelProps.getRecordingConfigurationArn()- Parameters:
recordingConfigurationArn- The ARN of a RecordingConfiguration resource. An empty string indicates that recording is disabled for the channel. A RecordingConfiguration ARN indicates that recording is enabled using the specified recording configuration. See the RecordingConfiguration resource for more information and an example.Default : "" (empty string, recording is disabled)
- Returns:
this
-
tags
Sets the value ofCfnChannelProps.getTags()- Parameters:
tags- An array of key-value pairs to apply to this resource. For more information, see Tag .- Returns:
this
-
type
Sets the value ofCfnChannelProps.getType()- Parameters:
type- The channel type, which determines the allowable resolution and bitrate. If you exceed the allowable resolution or bitrate, the stream probably will disconnect immediately. For details, see Channel Types .Default :
STANDARD- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnChannelProps>- Returns:
- a new instance of
CfnChannelProps - Throws:
NullPointerException- if any required attribute was not provided
-